summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-01 11:12:24 -0700
committerAndrew Tridgell <tridge@samba.org>2010-10-01 11:12:24 -0700
commit2d66bb51caf02c979f53688257dd33d7366b3ebc (patch)
tree7cff1b5a8869bb43c7d049a68f038349392ccc8f
parentf6bc4c08b19f5615a49d281c0792c7fe4627e9bc (diff)
downloadsamba-2d66bb51caf02c979f53688257dd33d7366b3ebc.tar.gz
samba-2d66bb51caf02c979f53688257dd33d7366b3ebc.tar.bz2
samba-2d66bb51caf02c979f53688257dd33d7366b3ebc.zip
autobuild: cwd is needed on all command types
-rwxr-xr-xscript/autobuild.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index be8006c324..4e3bc5101f 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -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):