autobuild: Reduce duplication of task list in autobuild
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2018 01:54:14 +0000 (13:54 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 Aug 2018 03:28:16 +0000 (05:28 +0200)
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 <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
script/autobuild.py

index e34a5a83faaf59717a360208d428df893557e4b8..dec6935b558841479254cdbc6ad2832e0d087a71 100755 (executable)
@@ -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