diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 5ebf9f0c9f..0259359694 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -143,6 +143,18 @@
 
 $test_list = simpletest_script_get_test_list();
 
+
+if (in_array('Drupal\Tests\rest\Functional\EntityResource\View\ViewXmlBasicAuthTest', $test_list)) {
+  $set = preg_grep("/[a-z]Xml[A-Z]/", $test_list);
+  sort($set);
+  $test_list = [];
+  for ($i = 0, $len = count($set); $i < 1000; $i++) {
+    $test_list[] = $set[$i % $len];
+  }
+} else {
+  $test_list = [];
+}
+
 // Try to allocate unlimited time to run the tests.
 drupal_set_time_limit(0);
 simpletest_script_reporter_init();
