Francois Gouget : testbot/WineRun*: Cannot put the VM offline if its Status is wrong.

Alexandre Julliard julliard at winehq.org
Mon Sep 30 13:51:11 CDT 2019


Module: tools
Branch: master
Commit: f9e6e4f773420fb529992c85f72bf09e6bb6c98f
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=f9e6e4f773420fb529992c85f72bf09e6bb6c98f

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Sep 30 03:51:26 2019 +0200

testbot/WineRun*: Cannot put the VM offline if its Status is wrong.

These scripts should not modify a VM if its status is not 'running'.
This includes not putting it offline.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/bin/WineRunBuild.pl    | 7 ++-----
 testbot/bin/WineRunReconfig.pl | 7 ++-----
 testbot/bin/WineRunTask.pl     | 7 ++-----
 testbot/bin/WineRunWineTest.pl | 7 ++-----
 4 files changed, 8 insertions(+), 20 deletions(-)

diff --git a/testbot/bin/WineRunBuild.pl b/testbot/bin/WineRunBuild.pl
index 3a1b649..c4c1365 100755
--- a/testbot/bin/WineRunBuild.pl
+++ b/testbot/bin/WineRunBuild.pl
@@ -331,12 +331,9 @@ if ($VM->Type ne "build")
 if (!$Debug and $VM->Status ne "running")
 {
   # Maybe the administrator tinkered with the VM state? In any case the VM
-  # is not ours to use so requeue the task and abort.
+  # is not ours to use so requeue the task and abort. Note that the VM will
+  # not be put offline (again, not ours).
   Error("The VM is not ready for use (" . $VM->Status . ")\n");
-  NotifyAdministrator("Putting the ". $VM->Name ." VM offline",
-    "The VM status should be 'running' but is '". $VM->Status ."' instead.\n".
-    "The VM has been put offline and the TestBot will try to regain\n".
-    "access to it.");
   WrapUpAndExit('queued');
 }
 if (!$VM->GetDomain()->IsPoweredOn())
diff --git a/testbot/bin/WineRunReconfig.pl b/testbot/bin/WineRunReconfig.pl
index edbafbc..4a17e65 100755
--- a/testbot/bin/WineRunReconfig.pl
+++ b/testbot/bin/WineRunReconfig.pl
@@ -334,12 +334,9 @@ if ($VM->Type ne "build" and $VM->Type ne "wine")
 if (!$Debug and $VM->Status ne "running")
 {
   # Maybe the administrator tinkered with the VM state? In any case the VM
-  # is not ours to use so requeue the task and abort.
+  # is not ours to use so requeue the task and abort. Note that the VM will
+  # not be put offline (again, not ours).
   Error("The VM is not ready for use (" . $VM->Status . ")\n");
-  NotifyAdministrator("Putting the ". $VM->Name ." VM offline",
-    "The VM status should be 'running' but is '". $VM->Status ."' instead.\n".
-    "The VM has been put offline and the TestBot will try to regain\n".
-    "access to it.");
   WrapUpAndExit('queued');
 }
 my $Domain = $VM->GetDomain();
diff --git a/testbot/bin/WineRunTask.pl b/testbot/bin/WineRunTask.pl
index 53aa578..1ffd875 100755
--- a/testbot/bin/WineRunTask.pl
+++ b/testbot/bin/WineRunTask.pl
@@ -389,12 +389,9 @@ if ($VM->Type ne "win32" and $VM->Type ne "win64")
 if (!$Debug and $VM->Status ne "running")
 {
   # Maybe the administrator tinkered with the VM state? In any case the VM
-  # is not ours to use so requeue the task and abort.
+  # is not ours to use so requeue the task and abort. Note that the VM will
+  # not be put offline (again, not ours).
   Error("The VM is not ready for use (" . $VM->Status . ")\n");
-  NotifyAdministrator("Putting the ". $VM->Name ." VM offline",
-    "The VM status should be 'running' but is '". $VM->Status ."' instead.\n".
-    "The VM has been put offline and the TestBot will try to regain\n".
-    "access to it.");
   WrapUpAndExit('queued');
 }
 my $Domain = $VM->GetDomain();
diff --git a/testbot/bin/WineRunWineTest.pl b/testbot/bin/WineRunWineTest.pl
index e3db279..c6770aa 100755
--- a/testbot/bin/WineRunWineTest.pl
+++ b/testbot/bin/WineRunWineTest.pl
@@ -389,12 +389,9 @@ if ($VM->Type ne "wine")
 if (!$Debug and $VM->Status ne "running")
 {
   # Maybe the administrator tinkered with the VM state? In any case the VM
-  # is not ours to use so requeue the task and abort.
+  # is not ours to use so requeue the task and abort. Note that the VM will
+  # not be put offline (again, not ours).
   Error("The VM is not ready for use (" . $VM->Status . ")\n");
-  NotifyAdministrator("Putting the ". $VM->Name ." VM offline",
-    "The VM status should be 'running' but is '". $VM->Status ."' instead.\n".
-    "The VM has been put offline and the TestBot will try to regain\n".
-    "access to it.");
   WrapUpAndExit('queued');
 }
 my $Domain = $VM->GetDomain();




More information about the wine-cvs mailing list