VirtualBox

Changeset 103494 in vbox


Ignore:
Timestamp:
Feb 21, 2024 1:59:44 PM (9 months ago)
Author:
vboxsync
Message:

Validation Kit/tdAudioTest: Added new option "--audio-test-timeout <ms>" to specify the testing timeouts.

File:
1 edited

Legend:

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

    r103455 r103494  
    136136        reporter.log('  --audio-test-count <number>');
    137137        reporter.log('      Default: 0 (means random)');
     138        reporter.log('  --audio-test-timeout <ms>');
     139        reporter.log('      Default: 5 minutes (300000)');
    138140        reporter.log('  --audio-test-tone-duration <ms>');
    139141        reporter.log('      Default: 0 (means random)');
     
    177179                raise base.InvalidOption('The "--audio-controller-type" value "%s" is not valid' % (asArgs[iArg]));
    178180        elif    asArgs[iArg] == '--audio-test-count' \
    179              or asArgs[iArg] == '--audio-test-tone-duration':
     181             or asArgs[iArg] == '--audio-test-tone-duration' \
     182             or asArgs[iArg] == '--audio-test-timeout':
     183            fHandleOption = True;
     184            if  asArgs[iArg] == '--audio-test-timeout' \
     185            and (self.fpApiVer < 7.1 or self.uRevision < 161834):
     186                fHandleOption = False; # Older VKAT builds don't know about this option.
    180187            # Strip the "--audio-test-" prefix and keep the options as defined in VKAT,
    181188            # e.g. "--audio-test-count" -> "--count". That way we don't
    182189            # need to do any special argument translation and whatnot.
    183             self.asVkatTestArgs.extend(['--' + asArgs[iArg][len('--audio-test-'):]]);
     190            if fHandleOption:
     191                self.asVkatTestArgs.extend(['--' + asArgs[iArg][len('--audio-test-'):]]);
    184192            iArg += 1;
    185193            if iArg >= len(asArgs):
    186194                raise base.InvalidOption('Option "%s" needs a value' % (asArgs[iArg - 1]));
    187             self.asVkatTestArgs.extend([asArgs[iArg]]);
     195            if fHandleOption:
     196                self.asVkatTestArgs.extend([asArgs[iArg]]);
    188197        elif    asArgs[iArg] == '--audio-verify-max-diff-count' \
    189198             or asArgs[iArg] == '--audio-verify-max-diff-percent' \
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