VirtualBox

Changeset 83588 in vbox for trunk/src


Ignore:
Timestamp:
Apr 6, 2020 2:04:55 PM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddGuestCtrl: Added "--add-guest-ctrl-debug-no-exit" parameter to not tear down and exit the test driver after running the tests. bugref:9320

File:
1 edited

Legend:

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

    r83586 r83588  
    13421342    def __init__(self, sImgPath = None):
    13431343        self.sImgPath = sImgPath;
     1344        self.fNoExit = False;
    13441345
    13451346class SubTstDrvAddGuestCtrl(base.SubTestDriverBase):
     
    13901391            self.oDebug.sImgPath = asArgs[iArg];
    13911392            return iNext;
     1393        if asArgs[iArg] == '--add-guest-ctrl-debug-no-exit':
     1394            self.oDebug.fNoExit = True;
     1395            return iArg + 1;
    13921396        return iArg;
    13931397
     
    14011405        reporter.log('  --add-guest-ctrl-debug-img');
    14021406        reporter.log('      Sets VBoxService image to deploy for debugging');
     1407        reporter.log('  --add-guest-ctrl-debug-no-exit');
     1408        reporter.log('      Does not tear down and exit the test driver after running the tests');
    14031409        return True;
    14041410
     
    49254931            self.addTask(oTxsSession);
    49264932
    4927             fManual = False; # Manual override for local testing. (Committed version shall be False.)
    4928             if not fManual:
    4929                 fRc, oTxsSession = self.aoSubTstDrvs[0].testIt(oTestVm, oSession, oTxsSession);
    4930             else:
    4931                 fRc, oTxsSession = self.testGuestCtrlManual(oSession, oTxsSession, oTestVm);
     4933            fRc, oTxsSession = self.aoSubTstDrvs[0].testIt(oTestVm, oSession, oTxsSession);
    49324934
    49334935            # Cleanup.
    49344936            self.removeTask(oTxsSession);
    4935             if not fManual:
     4937            if not self.aoSubTstDrvs[0].oDebug.fNoExit:
    49364938                self.terminateVmBySession(oSession);
    49374939        else:
    49384940            fRc = False;
    49394941        return fRc;
     4942
     4943    def onExit(self, iRc):
     4944        if self.aoSubTstDrvs[0].oDebug.fNoExit:
     4945            return True
     4946        return vbox.TestDriver.onExit(self, iRc);
    49404947
    49414948    def gctrlReportError(self, progress):
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