[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:
Rolf Bjarne Kvinge 2017-11-23 07:29:46 +01:00 коммит произвёл GitHub
Родитель 9b7c33e9ca
Коммит 3a28d950ab
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 {