Move to a new way to fetch git repos.

This should fix bugs with us not having rebased changes against the
current state of master.

Change-Id: Id43b0813c72ad7d430986ade7c6f77247ef460eb
This commit is contained in:
Michael Still
2014-01-06 19:47:27 +11:00
parent be745262a5
commit e8cadae39f
3 changed files with 110 additions and 23 deletions

View File

@@ -93,7 +93,7 @@ def execute_to_log(cmd, logfile, timeout=-1,
('[sqlslo]', '/var/log/mysql/slow-queries.log'),
('[sqlerr]', '/var/log/mysql/error.log')
],
heartbeat=True
heartbeat=True, env=None, cwd=None
):
""" Executes a command and logs the STDOUT/STDERR and output of any
supplied watch_logs from logs into a new logfile
@@ -130,7 +130,8 @@ def execute_to_log(cmd, logfile, timeout=-1,
cmd += ' 2>&1'
start_time = time.time()
p = subprocess.Popen(
cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
env=env, cwd=cwd)
descriptors[p.stdout.fileno()] = dict(
name='[output]',