From 6ac83dcccf1e828ea81106dd4595ff8d90ab4866 Mon Sep 17 00:00:00 2001 From: Paul Henshaw Date: Thu, 30 Jul 2026 18:47:52 +0200 Subject: [PATCH] Add call to sys.exit() with non-zero exit code so that tests using hamlet can detect failure --- openquake/hme/bin/hamlet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openquake/hme/bin/hamlet.py b/openquake/hme/bin/hamlet.py index 97a767e..ee51663 100755 --- a/openquake/hme/bin/hamlet.py +++ b/openquake/hme/bin/hamlet.py @@ -68,6 +68,9 @@ def main(arg=None): if args.pdb: debugger.post_mortem() + else: + # Exit with non-zero error code so that tests fail + sys.exit(1) if __name__ == "__main__":