[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:
Rolf Bjarne Kvinge 2018-09-25 20:32:22 +02:00 коммит произвёл GitHub
Родитель ea63e4559c
Коммит 8b7db1382d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -270,7 +270,7 @@ namespace Extrospection {
log.Flush ();
Console.WriteLine ($"@MonkeyWrench: SetSummary: {errors} unclassified found.");
return errors;
return errors == 0 ? 0 : 1;
}
}
}