ci/lava: Add explicit fatal-error handler
authorDaniel Stone <daniels@collabora.com>
Thu, 10 Jun 2021 22:45:07 +0000 (23:45 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 11 Jun 2021 12:13:00 +0000 (12:13 +0000)
commit82631c7182355de280a6b19deaf8a319de7cc4d1
treed517166e363acdf057d6be7c8b45d98960624e6a
parent4082fe7ce2456b7cf998ef928cc71e40a9dc5f6e
ci/lava: Add explicit fatal-error handler

Truth is relative in 2021, and Python's duck-typing means truthiness
isn't what you think it is. Use an explicit fatal-error handler to make
sure we crash out hard on failure, rather than hoping sys.exit() behaves
like you think it does, because it doesn't.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11309>
.gitlab-ci/lava/lava_job_submitter.py