Don't ignore testsuites without --list support, but consider them as
authorJelmer Vernooij <jelmer@samba.org>
Mon, 13 Oct 2014 00:49:39 +0000 (17:49 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Oct 2014 04:44:07 +0000 (06:44 +0200)
atomic entities.

This prevents any such testsuites from being skipped when run using
testr.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10874
Change-Id: I6ae8c92bb70e86a3b848b9cb3a53e2af466c3fe3
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/selftest.pl

index f35b063b016094d841296650dabcaf0e05aacabe..2df50924782704696ea41f5fae23f965a4ca84ea 100755 (executable)
@@ -943,6 +943,9 @@ $envvarstr
 
                unless($cmd =~ /\$LISTOPT/) {
                        warn("Unable to list tests in $name");
+                       # Rather than ignoring this testsuite altogether, just pretend the entire testsuite is
+                       # a single "test".
+                       print "$name\n";
                        next;
                }