- Timestamp:
- Aug 19, 2021 1:25:17 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r90741 r90744 34 34 35 35 # Standard Python imports. 36 import asyncio37 36 import os 38 37 import sys … … 245 244 return fRc; 246 245 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 255 246 def executeHst(self, sWhat, asArgs, fAsync = False, fAsAdmin = False): 256 247 """ … … 266 257 reporter.testStart(sWhat); 267 258 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); 276 260 if fRc: 277 261 reporter.error('Executing \"%s\" on host done' % (sWhat,)); … … 494 478 # Let VKAT on the host run synchronously. 495 479 # 496 fRc = self.executeHst("VKAT Host", asArgs , fAsync = False);480 fRc = self.executeHst("VKAT Host", asArgs); 497 481 498 482 return fRc;
Note:
See TracChangeset
for help on using the changeset viewer.