diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-06 20:15:48 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-06 11:13:05 +0000 |
commit | 1e2c1c89427c8230acb12a755d44d6b46b05a906 (patch) | |
tree | 4f6d91b8e65c68004e5aee6dd00d27834ba404bf /script | |
parent | c24240bcd2f833321f45ea4ce0b6c6d080a3b990 (diff) | |
download | samba-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-x | script/autobuild.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index b639c601ed3..fe0c1e2b3aa 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): |