no message

This commit is contained in:
2025-02-04 01:44:22 +03:00
parent 0373e7b546
commit e15f2921ee
4 changed files with 11 additions and 10 deletions

View File

@@ -117,7 +117,8 @@ public class RemoteDVMTestingPlanner extends DVMTestingPlanner {
runTask.state = TaskState.Canceled;
} else {
File rt_workspace = Paths.get(packageLocalWorkspace.getAbsolutePath(), "results", String.valueOf(runTask.id)).toFile();
if (rt_workspace.exists() && runTask.state.equals(TaskState.Finished)) {
if (rt_workspace.exists() && runTask.state.equals(TaskState.Finished)
) {
//анализ задачи на запуск.
File outFile = new File(rt_workspace, Constants.out_file);
File errFile = new File(rt_workspace.getAbsolutePath(), Constants.err_file);

View File

@@ -559,9 +559,10 @@ public class Utils {
}
}
TaskState state = TaskState.Finished;
if (starts != ends) {
if (starts == 0 || ends == 0) {
state = TaskState.WrongTestFormat;
} else if (errors > 0) {
} else
if (errors > 0) {
state = TaskState.DoneWithErrors;
} else {
state = TaskState.Done;