VirtualBox

Changeset 90987 in vbox


Ignore:
Timestamp:
Aug 30, 2021 7:29:07 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Increased (release log) logging of VKAT running on the host. ​bugref:10008

File:
1 edited

Legend:

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

    r90986 r90987  
    216216        return (False, "");
    217217
    218     def executeHstLoop(self, sWhat, asArgs, fAsAdmin = False):
     218    def executeHstLoop(self, sWhat, asArgs, asEnv = None, fAsAdmin = False):
    219219        """
    220220        Inner loop which handles the execution of a host binary.
    221221        """
    222222        fRc = False;
     223
     224        asEnvTmp = os.environ.copy();
     225        if asEnv:
     226            asEnvTmp = asEnvTmp + asEnv;
    223227
    224228        if  fAsAdmin \
    225229        and utils.getHostOs() != 'win':
    226230            oProcess = utils.sudoProcessPopen(asArgs,
     231                                              env = asEnvTmp,
    227232                                              stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = False,
    228233                                              close_fds = False);
    229234        else:
    230235            oProcess = utils.processPopenSafe(asArgs,
     236                                              env = asEnvTmp,
    231237                                              stdout = subprocess.PIPE, stderr = subprocess.PIPE);
    232238        if oProcess:
     
    246252        return fRc;
    247253
    248     def executeHst(self, sWhat, asArgs, fAsync = False, fAsAdmin = False):
     254    def executeHst(self, sWhat, asArgs, asEnv = None, fAsync = False, fAsAdmin = False):
    249255        """
    250256        Runs a binary (image) with optional admin (root) rights on the host and
     
    259265        reporter.testStart(sWhat);
    260266
    261         fRc = self.executeHstLoop(sWhat, asArgs);
     267        fRc = self.executeHstLoop(sWhat, asArgs, asEnv);
    262268        if fRc:
    263269            reporter.error('Executing \"%s\" on host done' % (sWhat,));
     
    462468        reporter.log('Using VKAT on host at: \"%s\"' % (sVkatExe));
    463469
     470        # Enable more verbose logging for all groups. Disable later again?
     471        asEnv = {};
     472        asEnv[ 'VKAT_RELEASE_LOG' ] = 'all.e.l.l2.l3.f';
     473
    464474        # Build the base command line, exclude all tests by default.
    465475        asArgs = [ sVkatExe, 'test', '-vv', '--mode', 'host', '--probe-backends', \
     
    472482        # Let VKAT on the host run synchronously.
    473483        #
    474         fRc = self.executeHst("VKAT Host", asArgs);
     484        fRc = self.executeHst("VKAT Host", asArgs, asEnv);
    475485
    476486        reporter.testDone();
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