Test logging improved

It is always fail to rerun 0 tests: use error instead of warning
This commit is contained in:
Ilya.Kazakevich
2017-04-19 00:09:06 +03:00
parent 88a141ce7f
commit 65a984d1f3
@@ -205,11 +205,8 @@ public class PyAbstractTestProcessRunner<CONF_T extends AbstractPythonRunConfigu
return null;
}
assert getFailedTestsCount() > 0: String.format("No failed tests on iteration %d, not sure what to rerun", myCurrentRerunStep);
final Logger logger = Logger.getInstance(PyAbstractTestProcessRunner.class);
if (getFailedTestsCount() == 0) {
logger
.warn(String.format("No failed tests on iteration %d, not sure what to rerun", myCurrentRerunStep));
}
logger.info(String.format("Starting iteration %s", myCurrentRerunStep));
myCurrentRerunStep++;