]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: show keywords when no tests ran
authorDaniel Stenberg <daniel@haxx.se>
Mon, 26 Oct 2020 07:58:05 +0000 (08:58 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 Oct 2020 22:05:19 +0000 (23:05 +0100)
To help out future debugging, runtests now outputs the list of keywords
when it fails because no tests ran.

Ref: #6120
Closes #6126

tests/runtests.pl

index c83b833a9227a0bf2ac5e9957f34c6dc89f815fa..4bcf61bbf012bb01c64a0dd9a0338710198e6415 100755 (executable)
@@ -5780,6 +5780,13 @@ if($total) {
 }
 else {
     logmsg "\nTESTFAIL: No tests were performed\n\n";
+    if(scalar(keys %enabled_keywords)) {
+        logmsg "TESTFAIL: Nothing matched these keywords: ";
+        for(keys %enabled_keywords) {
+            logmsg "$_ ";
+        }
+        logmsg "\n";
+    }
 }
 
 if($all) {