[test-runner] Don't output test result xml when no tests are run

A result xml that contains 0 tests confuses some tools.
This commit is contained in:
Alexander Köplinger 2018-03-30 18:18:23 +02:00
Родитель a5a496695a
Коммит 938415c6d3
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -208,6 +208,11 @@ public class TestRunner
}
}
if (!tests.Any ()) {
Console.WriteLine ("No tests selected, exiting.");
return 0;
}
/* If tests are repeated, we don't want the same test to run consecutively, so we need to randomise their order.
* But to ease reproduction of certain order-based bugs (if and only if test A and B execute at the same time),
* we want to use a constant seed so the tests always run in the same order. */