From af36a53c0863ddadf3190088395d3fc01c3c1ab2 Mon Sep 17 00:00:00 2001
From: Liam Morland <lkmorlan@493050.no-reply.drupal.org>
Date: Thu, 10 Dec 2020 23:35:01 +0000
Subject: [PATCH] Issue #3187730 by Liam Morland: Document that run-tests.sh
 arguments --class and --file must be last

---
 core/scripts/run-tests.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 2db30d956b6b..9e51cd4d6f16 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -276,11 +276,13 @@ function simpletest_script_help() {
 
   --class     Run tests identified by specific class names, instead of group names.
               A specific test method can be added, for example,
-              'Drupal\book\Tests\BookTest::testBookExport'.
+              'Drupal\book\Tests\BookTest::testBookExport'. This argument must
+              be last on the command line.
 
   --file      Run tests identified by specific file names, instead of group names.
               Specify the path and the extension
-              (i.e. 'core/modules/user/user.test').
+              (i.e. 'core/modules/user/user.test'). This argument must be last
+              on the command line.
 
   --types
 
-- 
GitLab