summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-06 20:15:48 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-06 11:13:05 +0000
commit1e2c1c89427c8230acb12a755d44d6b46b05a906 (patch)
tree4f6d91b8e65c68004e5aee6dd00d27834ba404bf /script
parentc24240bcd2f833321f45ea4ce0b6c6d080a3b990 (diff)
downloadsamba-1e2c1c89427c8230acb12a755d44d6b46b05a906.tar.gz
autobuild: only add autobuild.log if it exists
this makes running autobuild on other than sn-devel easier
Diffstat (limited to 'script')
-rwxr-xr-xscript/autobuild.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index b639c601ed..fe0c1e2b3a 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -215,7 +215,8 @@ class buildlist(object):
for b in self.tlist:
tar.add(b.stdout_path, arcname="%s.stdout" % b.tag)
tar.add(b.stderr_path, arcname="%s.stderr" % b.tag)
- tar.add("autobuild.log")
+ if os.path.exists("autobuild.log"):
+ tar.add("autobuild.log")
tar.close()
def remove_logs(self):