VirtualBox

Changeset 91723 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Oct 14, 2021 12:28:23 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Initialize some variables in the test driver so that they can be properly be deleted on failure in actionExecuteOnRunnigVM(). ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r91613 r91723  
    227227        fRc = True;
    228228
     229        oVM         = None;
     230        oVirtualBox = None;
     231
    229232        oVirtualBox = self.oVBoxMgr.getVirtualBox();
    230233        try:
    231234            oVM = oVirtualBox.findMachine(self.sRunningVmName);
    232235            if oVM.state != self.oVBoxMgr.constants.MachineState_Running:
    233                 reporter.error("Machine '%s' is not in Running state" % (self.sRunningVmName));
     236                reporter.error("Machine '%s' is not in Running state (state is %d)" % (self.sRunningVmName, oVM.state));
    234237                fRc = False;
    235238        except:
     
    249252                fRc = False;
    250253
    251         del oVM;
    252         del oVirtualBox;
     254        if oVM:
     255            del oVM;
     256        if oVirtualBox:
     257            del oVirtualBox;
    253258        return fRc;
    254259
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