From 03027ad8f1b698cbba0b78b68cf58b8505ad45d5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 7 Feb 2011 11:41:21 +1100 Subject: autobuild: add a bit more debug info in autobuild this may help to track down rebase problems in future Pair-Programmed-With: Andrew Bartlett --- script/autobuild.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'script') diff --git a/script/autobuild.py b/script/autobuild.py index 6570e15e50..d64ecfb390 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -26,7 +26,8 @@ builddirs = { "tevent" : "lib/tevent", "pidl" : "pidl", "pass" : ".", - "fail" : "." + "fail" : ".", + "retry" : "." } defaulttasks = [ "samba3", "samba4", "ldb", "tdb", "talloc", "replace", "tevent", "pidl" ] @@ -135,11 +136,7 @@ class builder(object): def __init__(self, name, sequence): self.name = name - - if name in ['pass', 'fail', 'retry']: - self.dir = "." - else: - self.dir = builddirs[name] + self.dir = builddirs[name] self.tag = self.name.replace('/', '_') self.sequence = sequence @@ -325,6 +322,7 @@ def write_pidfile(fname): def rebase_tree(url): print("Rebasing on %s" % url) + run_cmd("git describe HEAD", show=True, dir=test_master) run_cmd("git remote add -t master master %s" % url, show=True, dir=test_master) run_cmd("git fetch master", show=True, dir=test_master) if options.fix_whitespace: @@ -335,6 +333,9 @@ def rebase_tree(url): if diff == '': print("No differences between HEAD and master/master - exiting") sys.exit(0) + run_cmd("git describe master/master", show=True, dir=test_master) + run_cmd("git describe HEAD", show=True, dir=test_master) + run_cmd("git --no-pager diff HEAD master/master | diffstat", show=True, dir=test_master) def push_to(url): print("Pushing to %s" % url) @@ -490,7 +491,7 @@ while True: try: run_cmd("rm -rf %s" % test_master) cleanup_list.append(test_master) - run_cmd("git clone --shared %s %s" % (gitroot, test_master)) + run_cmd("git clone --shared %s %s" % (gitroot, test_master), show=True, dir=gitroot) except: cleanup() raise -- cgit