diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 36f6c471709ec689e2b4a92d233fd82eea63e567..3d9aa8017029705df4a3fef93494f86e788682ce 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -1033,7 +1033,7 @@ function simpletest_script_get_test_list() {
     foreach ($groups as $group => $tests) {
       $all_tests = array_merge($all_tests, array_keys($tests));
     }
-    $test_list = $all_tests;
+    $test_list = array_unique($all_tests);
   }
   else {
     if ($args['class']) {