удаление отладочной печати сравнения и не только
This commit is contained in:
@@ -82,8 +82,6 @@ public class MachineProcess extends DBObject {
|
||||
try {
|
||||
InetAddress address = InetAddress.getByName(machineAddress);
|
||||
InetAddress localAddress = InetAddress.getByName(Global.properties.ServerAddress);
|
||||
System.out.println("machine ip=" + Utils.Brackets(address.getHostAddress()));
|
||||
System.out.println("server ip=" + Utils.Brackets(localAddress.getHostAddress()));
|
||||
local = localAddress.getHostAddress().equals(address.getHostAddress());
|
||||
} catch (Exception ex) {
|
||||
Global.Log.PrintException(ex);
|
||||
|
||||
@@ -194,7 +194,6 @@ public abstract class TestingPlanner<P extends TestingPackage> extends Repositor
|
||||
//--
|
||||
Global.Home = testingSystemRoot;
|
||||
Global.CheckTestingSystemDirectories();
|
||||
System.out.println(Global.TestsDirectory.getAbsolutePath());
|
||||
//---
|
||||
machine = new Machine(machineAddress, machineAddress, machinePort, MachineType.Server);
|
||||
user = new User(userName, userPassword, userWorkspace);
|
||||
|
||||
@@ -148,14 +148,12 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
//------>>>
|
||||
public static Timer checkTimer = null;
|
||||
public static void TimerOn() {
|
||||
System.out.println("timer on");
|
||||
checkTimer = new Timer(Global.properties.CheckTestingIntervalSeconds * 1000, e -> {
|
||||
Pass_2021.passes.get(PassCode_2021.ActualizePackages).Do();
|
||||
});
|
||||
checkTimer.start();
|
||||
}
|
||||
public static void TimerOff() {
|
||||
System.out.println("timer off");
|
||||
if (checkTimer != null)
|
||||
checkTimer.stop();
|
||||
}
|
||||
@@ -332,7 +330,6 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
}
|
||||
groups.sort(Comparator.comparing(o -> o.getKey().description));
|
||||
//-теперь создать тесты.
|
||||
System.out.println("найдено " + groups.size() + " групп");
|
||||
//--
|
||||
for (Pair<Group, Vector<File>> p : groups)
|
||||
db.RefreshGroup(account, sapfor, p);
|
||||
|
||||
@@ -199,7 +199,6 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
}
|
||||
//---
|
||||
public void CreateTestFromSingleFile(Account account, ServerSapfor sapfor, Group group, File file, String testDescription) throws Exception {
|
||||
System.out.println("Создание теста " + file.getName());
|
||||
Test test = new Test();
|
||||
test.description = testDescription;
|
||||
test.sender_name = account.name;
|
||||
@@ -216,11 +215,9 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
//--
|
||||
Group oldGroup = groups.getGroupByDescription(group.language, group.description);
|
||||
if (oldGroup == null) {
|
||||
System.out.println("group " + Utils.Brackets(group.description) + " not found. create.");
|
||||
Insert(group);
|
||||
for (File file : files) {
|
||||
String testDescription = Utils.getNameWithoutExtension(file.getName()) + "_" + group.language.getDVMCompile();
|
||||
System.out.println("test " + Utils.Brackets(testDescription) + " create"); //добавить тест.
|
||||
CreateTestFromSingleFile(account, sapfor, group, file, testDescription);
|
||||
}
|
||||
} else {
|
||||
@@ -228,10 +225,8 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
String testDescription = Utils.getNameWithoutExtension(file.getName()) + "_" + group.language.getDVMCompile();
|
||||
Test oldTest = tests.getTestByDescription(oldGroup.id, testDescription);
|
||||
if (oldTest == null) {
|
||||
System.out.println("test " + Utils.Brackets(testDescription) + " not found. create"); //добавить тест.
|
||||
CreateTestFromSingleFile(account, sapfor, oldGroup, file, testDescription);
|
||||
} else {
|
||||
System.out.println(Utils.Brackets(testDescription) + " found. rewrite"); //добавить тест.
|
||||
SaveTestFromSingleFile(sapfor, group, oldTest, file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user