mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-19 19:14:59 +01:00
feat(simulation): the test mode's exit codes keep clear of 1 and 3
1 is what a process killed with TerminateProcess (and the plain failure of most programs) ends with, 3 what abort() ends with on Windows, so a fail or a timeout couldn't be told from a run that was killed or blew up. The codes other than pass now are 10 fail, 11 signal passed at danger, 12 timeout, 13 standstill and 14 error: none of them a code a process gets on its own, neither the shells' 126-127 nor 128 + a signal number on Linux. pass stays 0.
This commit is contained in:
@@ -52,14 +52,14 @@ COL_COMMAND = 16 # text, read as None
|
||||
COL_WHEELSLIP = 20
|
||||
COL_VEHICLE_VELOCITY = 25 # signed vehicle speed, km/h; only in builds which log it
|
||||
|
||||
# exit codes of the simulator's test mode (eu07 --test), see simulation/simulationtest.h
|
||||
# exit codes of the simulator's test mode (eu07 --test), see simulation/simulationtestrules.h
|
||||
EXIT_RESULTS = {
|
||||
0: "pass",
|
||||
1: "fail",
|
||||
2: "signal_passed_at_danger",
|
||||
3: "timeout",
|
||||
4: "standstill",
|
||||
5: "error",
|
||||
10: "fail",
|
||||
11: "signal_passed_at_danger",
|
||||
12: "timeout",
|
||||
13: "standstill",
|
||||
14: "error",
|
||||
}
|
||||
|
||||
# settings layered over the user's eu07.ini for a test run; the window ones only matter
|
||||
|
||||
Reference in New Issue
Block a user