VirtualBox

Ignore:
Timestamp:
Oct 4, 2023 2:18:11 PM (15 months ago)
Author:
vboxsync
Message:

ValKit: Query about a supported DirectX feature level, request using txsRunTest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r100975 r101340  
    54925492            return (True, oTxsSession);
    54935493
    5494         sPnpUtil = os.path.join(self.oTstDrv.getGuestSystemDir(oTestVm), 'pnputil.exe');
    5495 
    5496         # Use credential defaults.
    5497         oCreds = tdCtxCreds();
    5498         oCreds.applyDefaultsIfNotSet(oTestVm);
    5499 
    5500         #
    5501         # Create a session.
    5502         #
    5503         try:
    5504             oGuest = oSession.o.console.guest;
    5505             oGuestSession = oGuest.createSession(oCreds.sUser, oCreds.sPassword, oCreds.sDomain, "testGuestCtrl3D");
    5506             eWaitResult = oGuestSession.waitForArray([ vboxcon.GuestSessionWaitForFlag_Start, ], 30 * 1000);
    5507         except:
    5508             return (reporter.errorXcpt(), oTxsSession);
    5509 
    5510         # Be nice to Guest Additions < 4.3: They don't support session handling and therefore return WaitFlagNotSupported.
    5511         if eWaitResult not in (vboxcon.GuestSessionWaitResult_Start, vboxcon.GuestSessionWaitResult_WaitFlagNotSupported):
    5512             return (reporter.error('Session did not start successfully - wait error: %d' % (eWaitResult,)), oTxsSession);
    5513         reporter.log('Session successfully started');
    5514 
    5515         fRc = True;
    5516         asArgs = [ sPnpUtil, '/enum-devices', '/connected', '/class', 'Display' ];
    5517 
    5518         try:
    5519             oCurProcess = self.processCreateWrapper(oGuestSession, sPnpUtil,
    5520                                                     asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
    5521                                                     "", # Working directory.
    5522                                                     [], [], 30 * 1000);
    5523         except:
    5524             fRc = reporter.errorXcpt();
    5525         else:
    5526             reporter.log('Waiting for PnPUtil process being started ...');
    5527             try:
    5528                 eWaitResult = oCurProcess.waitForArray([ vboxcon.ProcessWaitForFlag_Start ], 30 * 1000);
    5529             except:
    5530                 fRc = reporter.errorXcpt();
    5531             else:
    5532                 if eWaitResult != vboxcon.ProcessWaitResult_Start:
    5533                     fRc = reporter.error('Waiting for PnPUtil process to start failed, got status %d' % (eWaitResult,));
    5534                 else:
    5535                     reporter.log('PnPUtil process started');
    5536 
    5537             oCurProcess = None;
    5538 
    5539         #
    5540         # Clean up the session.
    5541         #
    5542         try:
    5543             oGuestSession.close();
    5544         except:
    5545             fRc = reporter.errorXcpt();
     5494        fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Checking DX11 feature level', 30 * 1000,
     5495                                      '${CDROM}/${OS/ARCH}/ntDisplay${EXESUFF}', ('ntDisplay', ))
    55465496
    55475497        return (fRc, oTxsSession);
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