Francois Gouget : testbot/VMs: Make sure the VM status has been set to ' reverting' before starting RevertVM.

Alexandre Julliard julliard at winehq.org
Tue May 6 12:32:38 CDT 2014


Module: tools
Branch: master
Commit: 8fee9165bb6b1026e8eaf3913098d9942e482cea
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=8fee9165bb6b1026e8eaf3913098d9942e482cea

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue May  6 11:56:10 2014 +0200

testbot/VMs: Make sure the VM status has been set to 'reverting' before starting RevertVM.

---

 testbot/lib/WineTestBot/VMs.pm |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testbot/lib/WineTestBot/VMs.pm b/testbot/lib/WineTestBot/VMs.pm
index be95bcc..3c7f3fa 100644
--- a/testbot/lib/WineTestBot/VMs.pm
+++ b/testbot/lib/WineTestBot/VMs.pm
@@ -1,5 +1,5 @@
 # Copyright 2009 Ge van Geldorp
-# Copyright 2012 Francois Gouget
+# Copyright 2012-2014 Francois Gouget
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -533,7 +533,8 @@ sub RunRevert
   my $self = shift;
 
   $self->Status("reverting");
-  $self->Save();
+  my ($ErrProperty, $ErrMessage) = $self->Save();
+  return $ErrMessage if (defined $ErrMessage);
 
   $self->GetBackEnd()->PrepareForFork();
   my $Pid = fork;




More information about the wine-cvs mailing list