исправление бага с неуведомлением о запуске пакета двм
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
"Kernels": 8,
|
||||
"LocalMakePathWindows": "C:\\MinGW\\msys\\1.0\\bin\\make.exe",
|
||||
"CheckTestingIntervalSeconds": 10,
|
||||
"AutoCheckTesting": false,
|
||||
"AutoCheckTesting": true,
|
||||
"EmailOnTestingProgress": true,
|
||||
"lastMachineId": 13,
|
||||
"lastUserId": 24,
|
||||
|
||||
@@ -103,7 +103,7 @@ public abstract class TestingPlanner<P extends TestingPackage> extends TestingCl
|
||||
ServerCommand(ServerCode.EditObject, testingPackage);
|
||||
}
|
||||
public abstract String packageDescription();
|
||||
void EmailPackage() throws Exception {
|
||||
protected void EmailPackage() throws Exception {
|
||||
if (testingPackage.needsEmail == 1) {
|
||||
EmailMessage message = new EmailMessage();
|
||||
message.subject = "Состояние пакета тестирования " + packageDescription() + " " +
|
||||
|
||||
@@ -231,6 +231,14 @@ public class RemoteDVMTestingPlanner extends DVMTestingPlanner {
|
||||
Disconnect();
|
||||
}
|
||||
//--
|
||||
if (state_changed)
|
||||
switch (testingPackage.state) {
|
||||
case CompilationExecution:
|
||||
case RunningExecution:
|
||||
EmailPackage();
|
||||
break;
|
||||
}
|
||||
//--
|
||||
return progress_changed || state_changed;
|
||||
}
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user