VirtualBox

Changeset 90744 in vbox for trunk


Ignore:
Timestamp:
Aug 19, 2021 1:25:17 PM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: tdAudioTest.py: Removed asyncio stuff again; requires Python >= 3.5 but some test boxes still run with 2.7.x. ​bugref:10008

File:
1 edited

Legend:

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

    r90741 r90744  
    3434
    3535# Standard Python imports.
    36 import asyncio
    3736import os
    3837import sys
     
    245244        return fRc;
    246245
    247     # Only Python 3.x and up.
    248     async def execHstAsyncCallback(self, *aPositionalArgs):
    249         sWhat  = aPositionalArgs[0];
    250         asArgs = aPositionalArgs[1:];
    251         fRc = self.executeHstLoop(sWhat, asArgs);
    252         if not fRc:
    253             reporter.error('Asynchronous execution of \"%s\" on host failed' % (sWhat,));
    254 
    255246    def executeHst(self, sWhat, asArgs, fAsync = False, fAsAdmin = False):
    256247        """
     
    266257        reporter.testStart(sWhat);
    267258
    268         fRc = False;
    269 
    270         if fAsync: # Only Python 3.x and up.
    271             asyncio.run(self.execHstAsyncCallback(sWhat, *asArgs));
    272             fRc = True;
    273         else:
    274             fRc = self.executeHstLoop(sWhat, asArgs);
    275 
     259        fRc = self.executeHstLoop(sWhat, asArgs);
    276260        if fRc:
    277261            reporter.error('Executing \"%s\" on host done' % (sWhat,));
     
    494478        # Let VKAT on the host run synchronously.
    495479        #
    496         fRc = self.executeHst("VKAT Host", asArgs, fAsync = False);
     480        fRc = self.executeHst("VKAT Host", asArgs);
    497481
    498482        return fRc;
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