diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 738bfb52abfac3281cf3f925dd4b6591b9c10efd..f53ad19370c4d62bf78167be4d10cca8392ebd95 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -207,6 +207,7 @@ function simpletest_script_parse_args() {
     else {
       // Values found without an argument should be test names.
       $args['test_names'] += explode(',', $arg);
+      $count++;
     }
   }