From 0e734e7d881b5c77d06273313b2fde772233179a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 27 Sep 2010 11:23:06 +0200 Subject: [PATCH] the -q option allows to select a single plc for all steps --- system/TestMain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.47.0