From a27ab3acef207c06f52444156d26790b1349e6d2 Mon Sep 17 00:00:00 2001 From: 02090095 Date: Sat, 8 Feb 2025 20:48:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B0=D0=B3=D0=B0=20=D1=81=20?= =?UTF-8?q?=D0=BD=D0=B5=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=D0=BC=20=D0=BE=20=D0=B7=D0=B0=D0=BF=D1=83?= =?UTF-8?q?=D1=81=D0=BA=D0=B5=20=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=D0=B0=20?= =?UTF-8?q?=D0=B4=D0=B2=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- properties | 2 +- src/_VisualDVM/TestingSystem/Common/TestingPlanner.java | 2 +- .../TestingSystem/DVM/RemoteDVMTestingPlanner.java | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/properties b/properties index 71b3b2f1..e14be6ef 100644 --- a/properties +++ b/properties @@ -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, diff --git a/src/_VisualDVM/TestingSystem/Common/TestingPlanner.java b/src/_VisualDVM/TestingSystem/Common/TestingPlanner.java index 0edcbe9d..6e769fe5 100644 --- a/src/_VisualDVM/TestingSystem/Common/TestingPlanner.java +++ b/src/_VisualDVM/TestingSystem/Common/TestingPlanner.java @@ -103,7 +103,7 @@ public abstract class TestingPlanner

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() + " " + diff --git a/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java b/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java index b37de5f3..596333e5 100644 --- a/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java +++ b/src/_VisualDVM/TestingSystem/DVM/RemoteDVMTestingPlanner.java @@ -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