Changeset 91212 in vbox for trunk/src/VBox/ValidationKit/tests/audio
- Timestamp:
- Sep 10, 2021 5:04:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r91201 r91212 85 85 self.asTests = self.asTestsDef; 86 86 87 # Optional arguments passing to VKAT when doing the actual audio tests. 88 self.asVkatTestArgs = []; 87 89 # Optional arguments passing to VKAT when verifying audio test sets. 88 90 self.asVkatVerifyArgs = []; … … 110 112 reporter.log(' --audio-tests <s1[:s2[:]]>'); 111 113 reporter.log(' Default: %s (all)' % (':'.join(self.asTestsDef))); 114 reporter.log(' --audio-test-count <number>'); 115 reporter.log(' Default: 0 (means random)'); 112 116 reporter.log(' --audio-verify-max-diff-count <number>'); 113 117 reporter.log(' Default: 0 (strict)'); … … 138 142 raise base.InvalidOption('The "--audio-tests" value "%s" is not valid; valid values are: %s' 139 143 % (s, ' '.join(self.asTestsDef))); 144 elif asArgs[iArg] == '--audio-test-count': 145 # Strip the "--audio-test-" prefix and keep the options as defined in VKAT, 146 # e.g. "--audio-test-count" -> "--count". That way we don't 147 # need to do any special argument translation and whatnot. 148 self.asVkatTestArgs.extend(['--' + asArgs[iArg][len('--audio-test-'):]]); 149 iArg += 1; 150 if iArg >= len(asArgs): 151 raise base.InvalidOption('Option "%s" needs a value' % (asArgs[iArg - 1])); 152 self.asVkatTestArgs.extend([asArgs[iArg]]); 140 153 elif asArgs[iArg] == '--audio-verify-max-diff-count' \ 141 154 or asArgs[iArg] == '--audio-verify-max-diff-percent' \ … … 528 541 asArgs.extend([ '-v' ]); 529 542 543 if self.asVkatTestArgs: 544 asArgs += self.asVkatTestArgs; 545 530 546 # ... and extend it with wanted tests. 531 547 asArgs.extend(asTests);
Note:
See TracChangeset
for help on using the changeset viewer.