From: Andrew Bartlett Date: Thu, 16 Aug 2018 01:54:14 +0000 (+1200) Subject: autobuild: Reduce duplication of task list in autobuild X-Git-Tag: tdb-1.3.17~1998 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38784f2b371af2471ec08cf38bbcaea004efcce3;p=thirdparty%2Fsamba.git autobuild: Reduce duplication of task list in autobuild The defaulttasks or builddirs are often updated out of sync, which causes confusion until it is resolved. We simply choose "." as the builddir for the tasks that are not in the default set. Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- diff --git a/script/autobuild.py b/script/autobuild.py index e34a5a83faa..dec6935b558 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -39,7 +39,6 @@ builddirs = { "samba-libs": ".", "samba-libs-py3": ".", "samba-static": ".", - "samba-test-only": ".", "samba-none-env": ".", "samba-none-env-py3": ".", "samba-ad-dc": ".", @@ -53,38 +52,10 @@ builddirs = { "talloc": "lib/talloc", "replace": "lib/replace", "tevent": "lib/tevent", - "pidl": "pidl", - "pass": ".", - "fail": ".", - "retry": "." + "pidl": "pidl" } -defaulttasks = ["ctdb", - "samba", - "samba-py3", - "samba-nt4", - "samba-nt4-py3", - "samba-fileserver", - "samba-xc", - "samba-o3", - "samba-ctdb", - "samba-libs", - "samba-libs-py3", - "samba-static", - "samba-none-env", - "samba-none-env-py3", - "samba-ad-dc", - "samba-ad-dc-py3", - "samba-ad-dc-2", - "samba-ad-dc-2-py3", - "samba-systemkrb5", - "samba-nopython", - "ldb", - "tdb", - "talloc", - "replace", - "tevent", - "pidl"] +defaulttasks = builddirs.keys() if os.environ.get("AUTOBUILD_SKIP_SAMBA_O3", "0") == "1": defaulttasks.remove("samba-o3") @@ -432,7 +403,10 @@ class builder(object): def __init__(self, name, sequence, cp=True, py3=False): self.name = name self.py3 = py3 - self.dir = builddirs[name] + if name in builddirs: + self.dir = builddirs[name] + else: + self.dir = "." self.tag = self.name.replace('/', '_') self.sequence = sequence