From 575f10a0e25bbae465eeb134423b647199f923a8 Mon Sep 17 00:00:00 2001 From: Nedyalko Andreev Date: Thu, 2 Feb 2023 19:43:41 +0200 Subject: [PATCH] Restore the exit codes to the v0.42.0 values The only thing different is the meaning of the 103 exit code. It used to be `GenericEngine`, i.e. "the test died from an unknown cause", and will now be used for the well-defined `ScriptStoppedFromRESTAPI` error. --- errext/exitcodes/codes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/errext/exitcodes/codes.go b/errext/exitcodes/codes.go index 4d5c845ef79..8efc0578c8c 100644 --- a/errext/exitcodes/codes.go +++ b/errext/exitcodes/codes.go @@ -14,10 +14,10 @@ const ( SetupTimeout ExitCode = 100 TeardownTimeout ExitCode = 101 GenericTimeout ExitCode = 102 // TODO: remove? - CannotStartRESTAPI ExitCode = 103 + ScriptStoppedFromRESTAPI ExitCode = 103 InvalidConfig ExitCode = 104 ExternalAbort ExitCode = 105 - ScriptStoppedFromRESTAPI ExitCode = 106 + CannotStartRESTAPI ExitCode = 106 ScriptException ExitCode = 107 ScriptAborted ExitCode = 108 )