пустой файл вывода как признак падения (авост) теста двм
This commit is contained in:
4
.idea/workspace.xml
generated
4
.idea/workspace.xml
generated
@@ -6,7 +6,9 @@
|
|||||||
</artifacts-to-build>
|
</artifacts-to-build>
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="" />
|
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java" afterDir="false" />
|
||||||
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
|||||||
@@ -129,23 +129,27 @@ public class RemoteDVMTestingPlanner extends DVMTestingPlanner {
|
|||||||
List<String> output_lines = Arrays.asList(output.split("\n"));
|
List<String> output_lines = Arrays.asList(output.split("\n"));
|
||||||
List<String> errors_lines = Arrays.asList(errors.split("\n"));
|
List<String> errors_lines = Arrays.asList(errors.split("\n"));
|
||||||
//---
|
//---
|
||||||
if (Utils.isCrushed(output_lines, errors_lines)) {
|
if (output.trim().isEmpty()) {
|
||||||
runTask.state = TaskState.Crushed;
|
runTask.state = TaskState.Crushed;
|
||||||
} else {
|
} else {
|
||||||
Pair<TaskState, Integer> results = new Pair<>(TaskState.Done, 100);
|
if (Utils.isCrushed(output_lines, errors_lines)) {
|
||||||
switch (runTask.test_type) {
|
runTask.state = TaskState.Crushed;
|
||||||
case Correctness:
|
} else {
|
||||||
results = Utils.analyzeCorrectness(output_lines);
|
Pair<TaskState, Integer> results = new Pair<>(TaskState.Done, 100);
|
||||||
break;
|
switch (runTask.test_type) {
|
||||||
case Performance:
|
case Correctness:
|
||||||
results = Utils.analyzePerformance(output_lines);
|
results = Utils.analyzeCorrectness(output_lines);
|
||||||
break;
|
break;
|
||||||
default:
|
case Performance:
|
||||||
break;
|
results = Utils.analyzePerformance(output_lines);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
runTask.state = results.getKey();
|
||||||
|
runTask.progress = results.getValue();
|
||||||
|
runTask.CleanTime = Utils.parseCleanTime(output);
|
||||||
}
|
}
|
||||||
runTask.state = results.getKey();
|
|
||||||
runTask.progress = results.getValue();
|
|
||||||
runTask.CleanTime = Utils.parseCleanTime(output);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user