промежуточный. делаю задание числа потоков при тестировании через визуализатор

This commit is contained in:
2023-10-14 02:30:31 +03:00
parent a2971e95da
commit 79848baaa1
9 changed files with 14 additions and 21 deletions

View File

@@ -324,6 +324,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
SetCurrentAccountDB(sapforTasksPackage_info.email);
//--
SapforTasksPackage_json package_json = new SapforTasksPackage_json();
package_json.kernels = sapforTasksPackage_info.kernels;
for (String test_id : sapforTasksPackage_info.testsIds)
package_json.tests.add(db.tests.get(test_id).description);
//создание объекта набора задач. для бд.
@@ -369,8 +370,6 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
//создание настроек
GlobalProperties properties = new GlobalProperties();
properties.Mode = Current.Mode.Package;
properties.threadsNum = Global.properties.threadsNum; //брать из настроек сервера же.
properties.threadsTimeout = Global.properties.threadsTimeout;
Utils.jsonToFile(properties, new File(sapforTasksPackage.workspace, "properties"));
//создание инструкции
File package_json_file = new File(sapforTasksPackage.workspace, "package_json");
@@ -382,6 +381,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
sapforTasksPackage.sapfor_build_date = sapfor.buildDate;
sapforTasksPackage.testsNames = String.join(";", package_json.tests);
sapforTasksPackage.StartDate = new Date().getTime();
sapforTasksPackage.kernels= sapforTasksPackage_info.kernels;
sapforTasksPackage.state = TasksPackageState.Queued;
account_db.Update(sapforTasksPackage);
}