autobuild: only add autobuild.log if it exists
authorAndrew Tridgell <tridge@samba.org>
Wed, 6 Oct 2010 09:15:48 +0000 (20:15 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 6 Oct 2010 11:13:05 +0000 (11:13 +0000)
this makes running autobuild on other than sn-devel easier

script/autobuild.py

index b639c601ed3650cb54810072a67a5182c9705aac..fe0c1e2b3aada0b95db3a44e25f839338eb7145c 100755 (executable)
@@ -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):