1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +03:00

autobuild: Do not wait when running just one target

This avoids having to remember to specify AUTOBUILD_RANDOM_SLEEP_OVERRIDE manually

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Andrew Bartlett 2015-04-14 11:59:57 +12:00
parent 9d695c7372
commit d65675b2df

View File

@ -230,6 +230,11 @@ class buildlist(object):
self.retry = None
if tasknames == []:
tasknames = defaulttasks
else:
# If we are only running one test,
# do not sleep randomly to wait for it to start
os.environ['AUTOBUILD_RANDOM_SLEEP_OVERRIDE'] = '1'
for n in tasknames:
b = builder(n, tasks[n])
self.tlist.append(b)