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

Francois Gouget fgouget at codeweavers.com
Tue May 6 04:56:10 CDT 2014


---
 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 ddc579c..1cf1a42 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;
-- 
2.0.0.rc0



More information about the wine-patches mailing list