mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
autobuild: cwd is needed on all command types
This commit is contained in:
parent
f6bc4c08b1
commit
2d66bb51ca
@ -78,9 +78,9 @@ def run_cmd(cmd, dir=".", show=None, output=False, checkfail=True):
|
||||
if output:
|
||||
return Popen([cmd], shell=True, stdout=PIPE, cwd=dir).communicate()[0]
|
||||
elif checkfail:
|
||||
return check_call(cmd, shell=True)
|
||||
return check_call(cmd, shell=True, cwd=dir)
|
||||
else:
|
||||
return call(cmd, shell=True)
|
||||
return call(cmd, shell=True, cwd=dir)
|
||||
|
||||
|
||||
class builder(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user