selftest: Prevent error about unfinished test command when using --list.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 27 Nov 2011 20:07:07 +0000 (21:07 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 30 Nov 2011 21:58:04 +0000 (22:58 +0100)
selftest/wscript

index 1509b1a5a43840dc82352933cc2a2dc8264cf145..7dd3ed265f15e55a755856b5c0195d6236532dd2 100644 (file)
@@ -199,7 +199,7 @@ def cmd_testonly(opt):
         print("ERROR: test failed with exit code %d" % ret)
         sys.exit(ret)
 
-    if not os.path.exists(st_done):
+    if not Options.options.LIST and not os.path.exists(st_done):
         print("ERROR: test command failed to complete")
         sys.exit(1)