Example #1
0
 def __init__(self, scenario):
     """
     Initialization of a generic host object.
     
     @param  scenario        The ScenarioRunner object this host object is part of.
     """
     host.__init__(self, scenario)
Example #2
0
 def __init__(self, scenario):
     """
     Initialization of a generic host object.
     
     @param  scenario        The ScenarioRunner object this host object is part of.
     """
     host.__init__(self, scenario)
     self.the__lock = threading.Lock()
Example #3
0
 def __init__(self, scenario):
     """
     Initialization of a generic host object.
     
     @param  scenario        The ScenarioRunner object this host object is part of.
     """
     host.__init__(self, scenario)
     # TODO: Your initialization, if any (not likely). Oh, and remove the next line.
     raise Exception( "DO NOT instantiate the skeleton implementation" )
Example #4
0
 def __init__(self, scenario):
     """
     Initialization of a generic host object.
     
     @param  scenario        The ScenarioRunner object this host object is part of.
     """
     host.__init__(self, scenario)
     if not local.bashProgram:
         if os.path.exists( '/bin/bash' ):
             local.bashProgram = '/bin/bash'
         elif os.path.exists( '/usr/bin/bash' ):
             local.bashProgram = '/usr/bin/bash'
         else:
             out, _ = Popen( 'which bash', stdout = PIPE, shell = True ).communicate()
             if out is None or out == '' or not os.path.exists( 'out' ):
                 raise Exception( "host:local requires bash to be present" )
             local.bashProgram = out