VirtualBox

Changeset 95777 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 21, 2022 3:03:58 PM (2 years ago)
Author:
vboxsync
Message:

Validation Kit/tests/api: Fixed failing test due to changed API for 7.0.

File:
1 edited

Legend:

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

    r94599 r95777  
    124124            # re-register to test loading of settings
    125125            reporter.log('opening VM %s, testing config reading' % (sSettingsFile))
    126             oVM = oVBox.openMachine(sSettingsFile)
     126            if self.fpApiVer >= 7.0:
     127                # Needs a password parameter since 7.0.
     128                oVM = oVBox.openMachine(sSettingsFile, "")
     129            else:
     130                oVM = oVBox.openMachine(sSettingsFile)
    127131            ## @todo r=klaus: count known hard disk images, should be cImages
    128132
     
    196200            # re-register to test loading of settings
    197201            reporter.log('opening VM %s, testing config reading' % (sSettingsFile))
    198             oVM = oVBox.openMachine(sSettingsFile)
     202            if self.fpApiVer >= 7.0:
     203                # Needs a password parameter since 7.0.
     204                oVM = oVBox.openMachine(sSettingsFile, "")
     205            else:
     206                oVM = oVBox.openMachine(sSettingsFile)
    199207            reporter.log('API reports %i snapshots' % (oVM.snapshotCount))
    200208            fRc = fRc and oVM.snapshotCount == cSnapshots
     
    219227    from tdApi1 import tdApi1;      # pylint: disable=relative-import
    220228    sys.exit(tdApi1([SubTstDrvTreeDepth1]).main(sys.argv))
    221 
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