diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-10-21 14:35:33 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-01-05 09:10:24 +0100 |
commit | 9a91fce2deccfe0445363b2a35f2cfb72fdff766 (patch) | |
tree | ca941c38d89ddc7a0b1ab60dc4626f44d76e6c34 /script | |
parent | d60465cfec53a0476ea26b11cc857210ffdfc585 (diff) | |
download | samba-9a91fce2deccfe0445363b2a35f2cfb72fdff766.tar.gz |
autobuild: Give a clearer failure message
This helps when autobuild.py is used in --tail mode and
where there is neither e-mail nor access to the logs.tar.gz
Working back to find where the error happened is typically
quite difficult, as many failures are actually due to the
cleanup.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'script')
-rwxr-xr-x | script/autobuild.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index 2d3af2a7db2..8d1060e9115 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -720,6 +720,24 @@ blist.tarlogs("logs.tar.gz") if options.email is not None: email_failure(status, failed_task, failed_stage, failed_tag, errstr, elapsed_time, log_base=options.log_base) +else: + elapsed_minutes = elapsed_time / 60.0 + print ''' + +#################################################################### + +AUTOBUILD FAILURE + +Your autobuild on %s failed after %.1f minutes +when trying to test %s with the following error: + + %s + +the autobuild has been abandoned. Please fix the error and resubmit. + +#################################################################### + +''' % (platform.node(), elapsed_minutes, failed_task, errstr) cleanup() print(errstr) |