6
from tempfile import NamedTemporaryFile
10
'$HOME/juju-ci-tools/run-deploy-job-remote.bash',
11
os.environ['revision_build'],
12
os.environ['JOB_NAME'],
14
command.extend(sys.argv[2:])
15
with NamedTemporaryFile() as config_file:
16
json.dump({'command': command, 'install': {}}, config_file)
18
subprocess.check_call(['workspace-run', config_file.name, sys.argv[1]])
20
if __name__ == '__main__':