diff options
author | Andrew Bartlett <abartlet@samba.org> | 2021-09-17 16:43:00 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-09-21 23:05:41 +0000 |
commit | b81f6f3d71487085bb355392ce7f8eff2db5bb4d (patch) | |
tree | fa3824e077f6d87c834e2f1779a23489a2a29121 /script | |
parent | 21a7717359082feaddfdf42788648c3d7574c28e (diff) | |
download | samba-b81f6f3d71487085bb355392ce7f8eff2db5bb4d.tar.gz |
autobuild: allow AUTOBUILD_FAIL_IMMEDIATELY=0 (say from a gitlab variable)
This allows making a push to do a full test ignoring errors without
needing "HACK!!!" commits on top.
Use like this:
git push -o ci.variable='AUTOBUILD_FAIL_IMMEDIATELY=0'
RN: Samba CI runs can now continue past the first error if AUTOBUILD_FAIL_IMMEDIATELY=0 is set
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14841
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org
Reviewed-by: Noel Power <npower@samba.org>
Diffstat (limited to 'script')
-rwxr-xr-x | script/autobuild.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index e42e2365488..f521a2e7d2e 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -166,7 +166,6 @@ def format_option(name, value=None): def make_test( cmd='make testonly', - FAIL_IMMEDIATELY=1, INJECT_SELFTEST_PREFIX=1, TESTS='', include_envs=None, @@ -182,7 +181,13 @@ def make_test( TESTS = (TESTS + ' ' + ' '.join(test_options)).strip() _options = [] - if FAIL_IMMEDIATELY: + + # Allow getting a full CI with + # git push -o ci.variable='AUTOBUILD_FAIL_IMMEDIATELY=0' + + FAIL_IMMEDIATELY = os.getenv("AUTOBUILD_FAIL_IMMEDIATELY", "1") + + if int(FAIL_IMMEDIATELY): _options.append('FAIL_IMMEDIATELY=1') if TESTS: _options.append("TESTS='{}'".format(TESTS)) |