コード例 #1
0
 def check_agent_path_is_correct(self):
     """Make sure the agent binary listed in the config is correct."""
     self.agent_bin = str(test_config.values["agent_bin"])
     nova_conf = str(test_config.values["agent_conf"])
     assert_true(path.exists(self.agent_bin),
                 "Agent not found at path: %s" % self.agent_bin)
     self.agent = NativeService(cmd=[
         self.agent_bin,
         "--flagfile=%s" %
         nova_conf, "--rabbit_reconnect_wait_time=1", "--guest_id=-99"
     ])