Commits

Mikhail Korobov committed e9257d6

It turns out the cause of errors was a recent VirtualBox version, not Windows OS so the fix is changed not to be windows-specific.

Comments (0)

Files changed (1)

             self.box.snapshot('delete', name)
 
     def activate_snapshot(self, name):
-        if platform.system()=='Windows':
-            RETRIES_CNT = 5
-            for i in xrange(RETRIES_CNT):
-                if self.box.snapshot_exists(name):
-           	        break
-                else:
-                    time.sleep(1)
+        self.box.stop()
         assert self.box.snapshot_exists(name), 'Snapshot "%s" does not exist' % name
-        self.box.stop()
         self.box.snapshot('restore', name)
         self.box.start(self.headless)