summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-07 11:41:21 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-07 13:22:02 +1100
commit03027ad8f1b698cbba0b78b68cf58b8505ad45d5 (patch)
treed141471825eb5fd9c723d90f0b5f2ed2dabf4602 /script
parentdf069e40285eb38a68482a6fa460cf6e1898945c (diff)
downloadsamba-03027ad8f1b698cbba0b78b68cf58b8505ad45d5.tar.gz
samba-03027ad8f1b698cbba0b78b68cf58b8505ad45d5.tar.bz2
samba-03027ad8f1b698cbba0b78b68cf58b8505ad45d5.zip
autobuild: add a bit more debug info in autobuild
this may help to track down rebase problems in future Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/autobuild.py15
1 files changed, 8 insertions, 7 deletions
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