ref_name=method.__name__.replace('_ignore','').replace('force_','')
ref_method=TestPlc.__dict__[ref_name]
result=ref_method(self)
- print "Actual - but ignored - result for %(ref_name)s is %(result)s"%locals()
+ print "Actual (but ignored) result for %(ref_name)s is %(result)s"%locals()
return Ignored (result)
wrappee.__doc__="ignored version of " + method.__name__.replace('_ignore','').replace('ignore_','')
return wrappee
class slice_mapper__tasks (object):
# could not get this to work with named arguments
def __init__ (self,timeout_minutes,silent_minutes,period_seconds):
- print "timeout_minutes,silent_minutes,period_seconds",timeout_minutes,silent_minutes,period_seconds
self.timeout=timedelta(minutes=timeout_minutes)
self.silent=timedelta(minutes=silent_minutes)
self.period=timedelta(seconds=period_seconds)
'plc_db_dump' , 'plc_db_restore', SEP,
'check_netflow','check_drl', SEP,
'debug_nodemanager', SEP,
- 'standby_1_through_20',SEP,
+ 'standby_1_through_20','yes','no',SEP,
]
@staticmethod
def vm_root_in_host(self):
if self.options.plcs_use_lxc:
- return "/vservers/%s/rootfs/"%(self.vservername)
+ return "/vservers/%s/"%(self.vservername)
else:
return "/vservers/%s"%(self.vservername)
repo_url = os.path.dirname(repo_url)
# invoke initvm (drop support for vs)
- script="ltest-initvm.sh"
+ script="lbuild-initvm.sh"
script_options=""
# pass the vbuild-nightly options to [lv]test-initvm
script_options += " -p %s"%self.options.personality
def standby_19(): pass
@standby_generic
def standby_20(): pass
+
+ # convenience for debugging the test logic
+ def yes (self): return True
+ def no (self): return False