Commit 4d357a41 authored by Vincent Pelletier's avatar Vincent Pelletier

Provide and use run_directory instead of computing it.

parent 0cd300b9
...@@ -92,6 +92,7 @@ class Recipe(BaseSlapRecipe): ...@@ -92,6 +92,7 @@ class Recipe(BaseSlapRecipe):
test_node_title=self.parameter_dict.get('test_node_title'), test_node_title=self.parameter_dict.get('test_node_title'),
project_title=self.parameter_dict.get('project_title'), project_title=self.parameter_dict.get('project_title'),
bin_directory=self.bin_directory, bin_directory=self.bin_directory,
run_directory=self.run_directory,
# botenvironemnt is splittable string of key=value to substitute # botenvironemnt is splittable string of key=value to substitute
# environment of running bot # environment of running bot
bot_environment=self.parameter_dict.get('bot_environment', ''), bot_environment=self.parameter_dict.get('bot_environment', ''),
......
...@@ -84,8 +84,8 @@ PROFILE_PATH_KEY = 'profile_path' ...@@ -84,8 +84,8 @@ PROFILE_PATH_KEY = 'profile_path'
def run(args): def run(args):
config = args[0] config = args[0]
slapgrid = None slapgrid = None
supervisord_pid_file = os.path.join(config['instance_root'], 'var', 'run', supervisord_pid_file = os.path.join(config['run_directory'],
'supervisord.pid') 'supervisord.pid')
subprocess.check_call([config['git_binary'], subprocess.check_call([config['git_binary'],
"config", "--global", "http.sslVerify", "false"]) "config", "--global", "http.sslVerify", "false"])
previous_revision = None previous_revision = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment