Changeset 56722 in vbox
- Timestamp:
- Jul 1, 2015 6:27:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py
r56295 r56722 50 50 # Validation Kit imports. 51 51 from common import utils, webutils; 52 from common.constants import rtexitcode; 52 53 from testdriver import reporter; 53 54 from testdriver.base import TestDriverBase; … … 177 178 fRc = True; 178 179 if 'execute' not in self.asActions and 'all' not in self.asActions: 179 fRc = self._executeSubDriver([ 'cleanup-after', ] );180 fRc = self._executeSubDriver([ 'cleanup-after', ], fMaySkip = False); 180 181 181 182 if not self._killAllVBoxProcesses(): … … 199 200 based cleanup and finally swipe the scene with the heavy artillery. 200 201 """ 201 fRc1 = self._executeSubDriver([ 'abort', ] );202 fRc1 = self._executeSubDriver([ 'abort', ], fMaySkip = False); 202 203 fRc2 = TestDriverBase.actionAbort(self); 203 204 fRc3 = self._killAllVBoxProcesses(); … … 329 330 return False; 330 331 331 def _executeSync(self, asArgs ):332 def _executeSync(self, asArgs, fMaySkip = False): 332 333 """ 333 334 Executes a child process synchronously. 334 Returns True if the process executed successfully and returned 0, 335 otherwise False is returned. 335 336 Returns True if the process executed successfully and returned 0. 337 Returns None if fMaySkip is true and the child exits with RTEXITCODE_SKIPPED. 338 Returns False for all other cases. 336 339 """ 337 340 reporter.log('Executing: %s' % (asArgs, )); … … 343 346 return False; 344 347 reporter.log('Exit code: %s (%s)' % (iRc, asArgs)); 348 if fMaySkip and iRc == rtexitcode.RTEXITCODE_SKIPPED: 349 return None; 345 350 return iRc is 0; 346 351 … … 362 367 return (iRc is 0, iRc); 363 368 364 def _executeSubDriver(self, asActions ):369 def _executeSubDriver(self, asActions, fMaySkip = True): 365 370 """ 366 371 Execute the sub testdriver with the specified action. … … 369 374 asArgs.append('--no-wipe-clean'); 370 375 asArgs.extend(asActions); 371 return self._executeSync(asArgs );376 return self._executeSync(asArgs, fMaySkip = fMaySkip); 372 377 373 378 def _maybeUnpackArchive(self, sMaybeArchive, fNonFatal = False):
Note:
See TracChangeset
for help on using the changeset viewer.