[Tools] testbot: Don't fail setting the Status of a brand new VM.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Tools] testbot: Don't fail setting the Status of a brand new VM.

Francois Gouget
Signed-off-by: Francois Gouget <[hidden email]>
---
 testbot/lib/WineTestBot/VMs.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/VMs.pm b/testbot/lib/WineTestBot/VMs.pm
index c6272ee2..7db0aa51 100644
--- a/testbot/lib/WineTestBot/VMs.pm
+++ b/testbot/lib/WineTestBot/VMs.pm
@@ -221,7 +221,7 @@ sub Status($;$)
   my $CurrentStatus = $self->SUPER::Status;
   return $CurrentStatus if (!defined $NewStatus);
 
-  if ($NewStatus ne $CurrentStatus)
+  if (!defined $CurrentStatus or $NewStatus ne $CurrentStatus)
   {
     $self->SUPER::Status($NewStatus);
     $self->{OldStatus} = $CurrentStatus;
--
2.15.0