script/autobuild.py: cleanup on rebase failure
authorStefan Metzmacher <metze@samba.org>
Sat, 21 Jan 2012 08:29:35 +0000 (09:29 +0100)
committerStefan Metzmacher <metze@samba.org>
Sat, 21 Jan 2012 10:29:58 +0000 (11:29 +0100)
We can improve this to generate logs.tar.gz later...

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Jan 21 11:29:58 CET 2012 on sn-devel-104

script/autobuild.py

index abca8e80c0bc71ca902c8718a1b789b63c37386e..d6ad082510e728062a443220d34c953569e1aab0 100755 (executable)
@@ -504,6 +504,8 @@ while True:
             elif options.rebase_master:
                 rebase_tree(samba_master)
         except:
             elif options.rebase_master:
                 rebase_tree(samba_master)
         except:
+            cleanup_list.append(gitroot + "/autobuild.pid")
+            cleanup()
             email_failure(-1, 'rebase', 'rebase', 'rebase', 'rebase on master failed')
             sys.exit(1)
         blist = buildlist(tasks, args)
             email_failure(-1, 'rebase', 'rebase', 'rebase', 'rebase on master failed')
             sys.exit(1)
         blist = buildlist(tasks, args)