исправил внесенные баги, связанные с созданием тестов из версий проекта.

This commit is contained in:
2023-11-20 00:15:22 +03:00
parent 928705e018
commit b9132782eb
19 changed files with 114 additions and 169 deletions

View File

@@ -2,7 +2,6 @@ package Visual_DVM_2021.Passes.All;
import Common.Current;
import Common.Global;
import Common.UI.UI;
import Common.Utils.Utils;
import ProjectData.Project.db_project_info;
import TestingSystem.Common.Test.Test;
import TestingSystem.Common.TestingServer;
@@ -14,26 +13,15 @@ public class PublishTest extends PublishServerObject<TestingServer, Test> {
}
db_project_info project = null;
protected boolean setProject() {
if (Current.Check(Log, Current.Group, Current.Project)
&& UI.Question("Добавить текущий проект в глобальную базу тестов")) {
if (Current.Check(Log, Current.Group, Current.Project) && UI.Question("Добавить текущий проект в глобальную базу тестов")) {
project = Current.getProject();
if (project.checkSubdirectories(Log)) {
switch (project.languageName) {
case fortran:
return passes.get(PassCode_2021.SPF_GetMaxMinBlockDistribution).Do();
case c:
project.testMaxDim = Utils.getCProjectMaxDim(project);
return true;
default:
return false;
}
}
return true;
}
return false;
}
@Override
public boolean fillObjectFields() throws Exception {
if (setProject()) {
if (setProject()&&project.checkSubdirectories(Log)) {
target.description = project.getLocalName() + " " + project.description;
target.dim = project.testMaxDim;
target.group_id = Current.getGroup().id;