summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-26 08:58:05 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-10-26 08:58:05 +0100
commit98c74ff2bc42858998dc634c165b31d6b755e34e (patch)
tree415543b8ed4b92fa339bc8e7d16ded4f5c86193f
parent96450a1a33ec22cb54b20dbac08ebdf14648582f (diff)
downloadcurl-bagder/runtests-failed-keywords.tar.gz
runtests: show keywords when no tests ranbagder/runtests-failed-keywords
To help out future debugging, runtests now outputs the list of keywords when it fails because no tests ran.
-rwxr-xr-xtests/runtests.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index c83b833a9..4bcf61bbf 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -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) {