wintest Make the new --vms option default to running all tests.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 30 Nov 2010 01:37:01 +0000 (12:37 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 1 Dec 2010 05:09:58 +0000 (16:09 +1100)
Andrew Bartlett

wintest/test-s4-howto.py
wintest/wintest.py

index 800f22eb5deac3298c8881a3f13e74457c6afa2b..d04cabbb3e680a80be8c36fc812ff639fc806e05 100755 (executable)
@@ -816,7 +816,7 @@ if __name__ == '__main__':
     parser = optparse.OptionParser("test-howto.py")
     parser.add_option("--conf", type='string', default='', help='config file')
     parser.add_option("--skip", type='string', default='', help='list of steps to skip (comma separated)')
-    parser.add_option("--vms", type='string', default='', help='list of VMs to use (comma separated)')
+    parser.add_option("--vms", type='string', default=None, help='list of VMs to use (comma separated)')
     parser.add_option("--list", action='store_true', default=False, help='list the available steps')
     parser.add_option("--rebase", action='store_true', default=False, help='do a git pull --rebase')
     parser.add_option("--clean", action='store_true', default=False, help='clean the tree')
index 910297ed4b91dfbce4f2c4f323ca7a6ab5b05492..c9bd87554e35a70022cb5bcbd5d351e99bd110cf 100644 (file)
@@ -68,7 +68,8 @@ class wintest():
 
     def set_vms(self, vms):
         '''set a list of VMs to test'''
-        self.vms = vms.split(',')
+        if vms is not None:
+            self.vms = vms.split(',')
 
     def skip(self, step):
         '''return True if we should skip a step'''