[PATCH 2/8] Don't ignore testsuites without --list support, but consider them as atomic entities.

Jelmer Vernooij jelmer at samba.org
Sun Oct 12 22:18:58 MDT 2014


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 at samba.org>
---
 selftest/selftest.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index f35b063..2df5092 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -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;
 		}
 
-- 
2.1.1



More information about the samba-technical mailing list