VirtualBox

Changeset 86504 in vbox


Ignore:
Timestamp:
Oct 9, 2020 1:51:02 PM (4 years ago)
Author:
vboxsync
Message:

ValKit/tdMoveVm1.py: Must test startVm result. Don't use time.sleep for waiting. bugref:9841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/api/tdMoveVm1.py

    r85465 r86504  
    380380
    381381        # Run VM and get new Session object.
    382         oSession = self.oTstDrv.startVm(oMachine)
     382        oSession = self.oTstDrv.startVm(oMachine);
     383        if not oSession:
     384            return False;
    383385
    384386        # Some time interval should be here for not closing VM just after start.
    385         time.sleep(1)
     387        self.oTstDrv.waitForTasks(1000);
    386388
    387389        if oMachine.state != self.oTstDrv.oVBoxMgr.constants.MachineState_Running:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette