VirtualBox

Changeset 61934 in vbox


Ignore:
Timestamp:
Jun 29, 2016 1:40:26 PM (8 years ago)
Author:
vboxsync
Message:

testdriver/vbox.py: terminateVmBySession: Pause VM if we're going to get any screenshots, stacks or such.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r61931 r61934  
    25512551
    25522552        #
     2553        # Pause the VM if we're going to take any screenshots or dig into the
     2554        # guest.  Failures are quitely ignored.
     2555        #
     2556        if self.fAlwaysUploadLogs or reporter.testErrorCount() > 0:
     2557            try:
     2558                if oSession.oVM.state in [ vboxcon.MachineState_Running,
     2559                                           vboxcon.MachineState_LiveSnapshotting,
     2560                                           vboxcon.MachineState_Teleporting ]:
     2561                    oSession.o.console.pause();
     2562            except:
     2563                reporter.logXcpt();
     2564
     2565        #
    25532566        # Take Screenshot and upload it (see below) to Test Manager if appropriate/requested.
    25542567        #
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