[xtro] Only return 1 in case of failure in reporter. (#4877)
This solves two problems: * xharness thinks it crashed if the exit code is neither 0 nor 1, and helpfully says so and tries to collect crash reports, which only ends up being confusing. * The exit code is byte-sized on macOS. This means that trying to return 256 actually returns 0 (success).
This commit is contained in:
Родитель
ea63e4559c
Коммит
8b7db1382d
|
@ -270,7 +270,7 @@ namespace Extrospection {
|
|||
log.Flush ();
|
||||
|
||||
Console.WriteLine ($"@MonkeyWrench: SetSummary: {errors} unclassified found.");
|
||||
return errors;
|
||||
return errors == 0 ? 0 : 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче