VirtualBox

Changeset 90222 in vbox


Ignore:
Timestamp:
Jul 16, 2021 7:41:35 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145759
Message:

Audio/ValKit: More bugfixing for tdAudioTest. bugref:10008

File:
1 edited

Legend:

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

    r90221 r90222  
    333333        Runs tests using one specific VM config.
    334334        """
    335         fRc = False;
    336335
    337336        self.logVmInfo(oVM);
    338337
    339         fSkip = False;
    340338        if  oTestVm.isWindows() \
    341339        and oTestVm.sKind in ('WindowsNT4', 'Windows2000'): # Too old for DirectSound and WASAPI backends.
    342             fSkip = True;
    343 
    344         if not fSkip:
    345             reporter.testStart('Waiting for TXS');
    346             oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName,
    347                                                                     fCdWait = True,
    348                                                                     cMsTimeout = 3 * 60 * 1000,
    349                                                                     sFileCdWait = '${CDROM}/${OS/ARCH}/vkat${EXESUFF}');
    350             reporter.testDone();
    351             if  oSession    is not None \
    352             and oTxsSession is not None:
    353                 self.addTask(oTxsSession);
    354 
    355             fRc = self.doTest(oTestVm, oSession, oTxsSession);
    356 
    357             if oSession is not None:
    358                 self.removeTask(oTxsSession);
    359                 self.terminateVmBySession(oSession);
    360 
    361             return fRc;
    362 
    363         reporter.log('Audio testing skipped, not implemented/available for that OS yet.');
    364         return True;
    365 
    366     #
    367     # Test execution helpers.
    368     #
    369     def testOneCfg(self, oVM, oTestVm):
    370         """
    371         Runs the specified VM thru the tests.
    372 
    373         Returns a success indicator on the general test execution. This is not
    374         the actual test result.
    375         """
    376 
    377         self.logVmInfo(oVM);
    378 
    379         fRc = True;
     340            reporter.log('Audio testing skipped, not implemented/available for that OS yet.');
     341            return True;
     342
     343        fRc = False;
    380344
    381345        # Reconfigure the VM.
     
    392356            fRc = oSession.close() and fRc;
    393357
    394         if fRc:
    395             oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, fCdWait = False);
    396             reporter.log("TxsSession: %s" % (oTxsSession,));
    397             if oSession is not None:
    398                 self.addTask(oTxsSession);
    399 
    400                 fRc, oTxsSession = self.aoSubTstDrvs[0].testIt(oTestVm, oSession, oTxsSession);
    401 
    402                 # Cleanup.
    403                 self.removeTask(oTxsSession);
    404                 if not self.aoSubTstDrvs[0].oDebug.fNoExit:
    405                     self.terminateVmBySession(oSession);
    406             else:
    407                 fRc = False;
     358        reporter.testStart('Waiting for TXS');
     359        oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName,
     360                                                                fCdWait = True,
     361                                                                cMsTimeout = 3 * 60 * 1000,
     362                                                                sFileCdWait = '${CDROM}/${OS/ARCH}/vkat${EXESUFF}');
     363        reporter.testDone();
     364        if  oSession    is not None \
     365        and oTxsSession is not None:
     366            self.addTask(oTxsSession);
     367
     368        fRc = self.doTest(oTestVm, oSession, oTxsSession);
     369
     370        if oSession is not None:
     371            self.removeTask(oTxsSession);
     372            self.terminateVmBySession(oSession);
    408373
    409374        return fRc;
Note: See TracChangeset for help on using the changeset viewer.

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