auto restart tests: don't auto restart on explicit compilation if nothing was changed (IDEA-161333)

This commit is contained in:
Anna Kozlova
2016-09-16 13:25:12 +03:00
parent 8b82f7cc0e
commit cf44324d85
@@ -57,6 +57,7 @@ public class JavaAutoRunManager extends AbstractAutoTestManager {
private boolean myFoundFilesToMake = false;
@Override
public void compilationFinished(boolean aborted, int errors, int warnings, CompileContext compileContext) {
if (!myFoundFilesToMake) return;
if (errors == 0) {
restartAllAutoTests(0);
}
@@ -66,7 +67,6 @@ public class JavaAutoRunManager extends AbstractAutoTestManager {
@Override
public void automakeCompilationFinished(int errors, int warnings, CompileContext compileContext) {
if (!myFoundFilesToMake) return;
compilationFinished(false, errors, warnings, compileContext);
}