VirtualBox

Changeset 78636 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 21, 2019 2:56:45 PM (6 years ago)
Author:
vboxsync
Message:

tdAddGuestCtrl.py: The nice to have 'all' option value is evaluated too early.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r78470 r78636  
    962962        if asArgs[iArg] == '--add-guest-ctrl-tests':
    963963            iArg += 1;
     964            iNext = self.oTstDrv.requireMoreArgs(1, asArgs, iArg);
    964965            if asArgs[iArg] == 'all': # Nice for debugging scripts.
    965966                self.asTests = self.asTestsDef;
    966                 return iArg + 1;
    967 
    968             iNext = self.oTstDrv.requireMoreArgs(1, asArgs, iArg);
    969             self.asTests = asArgs[iArg].split(':');
    970             for s in self.asTests:
    971                 if s not in self.asTestsDef:
    972                     raise base.InvalidOption('The "--add-guest-ctrl-tests" value "%s" is not valid; valid values are: %s' \
    973                         % (s, ' '.join(self.asTestsDef)));
     967            else:
     968                self.asTests = asArgs[iArg].split(':');
     969                for s in self.asTests:
     970                    if s not in self.asTestsDef:
     971                        raise base.InvalidOption('The "--add-guest-ctrl-tests" value "%s" is not valid; valid values are: %s'
     972                                                 % (s, ' '.join(self.asTestsDef)));
    974973            return iNext;
    975974        return iArg;
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