This will allow splitting up of the python2 and python3 tests without
duplication of this already complex file.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Aug 25 11:53:15 CEST 2018 on sn-devel-144
class builder(object):
'''handle build of one directory'''
class builder(object):
'''handle build of one directory'''
- def __init__(self, name, sequence, cp=True):
+ def __init__(self, name, sequence, cp=True, py3=False):
self.dir = builddirs[name]
self.tag = self.name.replace('/', '_')
self.dir = builddirs[name]
self.tag = self.name.replace('/', '_')
os.environ['AUTOBUILD_RANDOM_SLEEP_OVERRIDE'] = '1'
for n in tasknames:
os.environ['AUTOBUILD_RANDOM_SLEEP_OVERRIDE'] = '1'
for n in tasknames:
- b = builder(n, tasks[n], cp=n is not "pidl")
+ if n not in tasknames and n.endswith("-py3"):
+ b = builder(n,
+ tasks[n[:-4]],
+ cp=n is not "pidl",
+ py3=True)
+ else:
+ b = builder(n, tasks[n], cp=n is not "pidl")
self.tlist.append(b)
if options.retry:
rebase_remote = "rebaseon"
self.tlist.append(b)
if options.retry:
rebase_remote = "rebaseon"