From: Thierry Parmentelat Date: Mon, 27 Sep 2010 09:23:06 +0000 (+0200) Subject: the -q option allows to select a single plc for all steps X-Git-Tag: tests-5.0-17~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0e734e7d881b5c77d06273313b2fde772233179a;p=tests.git the -q option allows to select a single plc for all steps --- diff --git a/system/TestMain.py b/system/TestMain.py index 3ed4d7d..5035a2f 100755 --- a/system/TestMain.py +++ b/system/TestMain.py @@ -100,6 +100,8 @@ steps refer to a method in TestPlc or to a step_* module help="Specify the set of hostname/IP's to use for qemu boxes") parser.add_option("-s","--size",action="store",type="int",dest="size",default=1, help="sets test size in # of plcs - default is 1") + parser.add_option("-q","--qualifier",action="store",type="int",dest="qualifier",default=None, + help="run steps only on plc numbered , starting at 1") parser.add_option("-D","--dbname",action="store",dest="dbname",default=None, help="Used by db_dump and db_restore") parser.add_option("-v","--verbose", action="store_true", dest="verbose", default=False, @@ -280,7 +282,7 @@ steps refer to a method in TestPlc or to a step_* module # allow for steps to specify an index like in # run checkslice@2 try: (step,qualifier)=step.split('@') - except: qualifier=None + except: qualifier=self.options.qualifier # try and locate a method in TestPlc if testplc_method_dict.has_key(step):