From: Andrew Tridgell Date: Wed, 6 Oct 2010 09:15:48 +0000 (+1100) Subject: autobuild: only add autobuild.log if it exists X-Git-Tag: samba-4.0.0alpha14~2265 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=1e2c1c89427c8230acb12a755d44d6b46b05a906 autobuild: only add autobuild.log if it exists this makes running autobuild on other than sn-devel easier --- 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):