- Timestamp:
- Apr 6, 2020 2:04:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r83586 r83588 1342 1342 def __init__(self, sImgPath = None): 1343 1343 self.sImgPath = sImgPath; 1344 self.fNoExit = False; 1344 1345 1345 1346 class SubTstDrvAddGuestCtrl(base.SubTestDriverBase): … … 1390 1391 self.oDebug.sImgPath = asArgs[iArg]; 1391 1392 return iNext; 1393 if asArgs[iArg] == '--add-guest-ctrl-debug-no-exit': 1394 self.oDebug.fNoExit = True; 1395 return iArg + 1; 1392 1396 return iArg; 1393 1397 … … 1401 1405 reporter.log(' --add-guest-ctrl-debug-img'); 1402 1406 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'); 1403 1409 return True; 1404 1410 … … 4925 4931 self.addTask(oTxsSession); 4926 4932 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); 4932 4934 4933 4935 # Cleanup. 4934 4936 self.removeTask(oTxsSession); 4935 if not fManual:4937 if not self.aoSubTstDrvs[0].oDebug.fNoExit: 4936 4938 self.terminateVmBySession(oSession); 4937 4939 else: 4938 4940 fRc = False; 4939 4941 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); 4940 4947 4941 4948 def gctrlReportError(self, progress):
Note:
See TracChangeset
for help on using the changeset viewer.