[xharness] Report the exit code when thinking a test crashed. (#3028)
Usually an exit code of neither 0 nor 1 means a test run crashed (in particular if the exit code is 130+), but this may not always be true, so report the exit code as well so that a human can evaluate properly.
This commit is contained in:
Родитель
9b7c33e9ca
Коммит
3a28d950ab
|
@ -2671,7 +2671,7 @@ function oninitialload ()
|
|||
ExecutionResult = TestExecutingResult.Succeeded;
|
||||
} else {
|
||||
ExecutionResult = TestExecutingResult.Failed;
|
||||
FailureMessage = result.ExitCode != 1 ? "Test run crashed." : "Test run failed.";
|
||||
FailureMessage = result.ExitCode != 1 ? $"Test run crashed (exit code: {result.ExitCode})." : "Test run failed.";
|
||||
log.WriteLine (FailureMessage);
|
||||
}
|
||||
} finally {
|
||||
|
|
Загрузка…
Ссылка в новой задаче