From f1ec2386a7091b1bd37278a81feba04b01a33f1f Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Thu, 7 Nov 2013 15:04:00 +0000 Subject: [PATCH] Issue #2129197 by dawehner: Testbot (run-tests.sh with --file) attempts to run non-test classes, fails. --- core/scripts/run-tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index ae489e1c772e..58f45ae9451f 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -668,7 +668,10 @@ function simpletest_script_get_test_list() { } else { foreach ($matches[1] as $class_name) { - $test_list[] = $namespace . '\\' . $class_name; + $namespace_class = $namespace . '\\' . $class_name; + if (is_subclass_of($namespace_class, '\Drupal\simpletest\TestBase') || is_subclass_of($namespace_class, '\Drupal\Tests\UnitTestCase')) { + $test_list[] = $namespace_class; + } } } } -- GitLab