# HG changeset patch # User Matthew Wild # Date 1536697540 -3600 # Node ID ff11f32d2499f2803f51106805a1e97bea103045 # Parent d241861a36b485fbfce5a14c4880afb33a2baddc main: Fix to restore correct exit code diff -r d241861a36b4 -r ff11f32d2499 main.lua --- a/main.lua Tue Sep 11 21:16:00 2018 +0100 +++ b/main.lua Tue Sep 11 21:25:40 2018 +0100 @@ -313,4 +313,11 @@ log_data("end", { time = time(), summary = result_tally }); +local exit_code = 0; +if result_tally.error then + exit_code = 2; +elseif result_tally.fail then + exit_code = 1; +end + os.exit(exit_code);