VirtualBox

Ignore:
Timestamp:
Nov 28, 2022 9:21:06 AM (2 years ago)
Author:
vboxsync
Message:

Validation Kit/Guest Control: Skip doing further testing if we're dead in the water already, i.e. client / VBoxSVC crashed for whatever reason. Saves a bit of time, and applyDefaultsIfNotSet() will assert anyway if the VM object is None.

File:
1 edited

Legend:

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

    r97673 r97688  
    15031503        fRc = True;
    15041504        for fMustSucceed, fnHandler, sShortNm, sTestNm in atTests:
     1505
     1506            # If for whatever reason the VM object became invalid, bail out.
     1507            if not oTestVm:
     1508                reporter.error('Test VM object invalid (VBoxSVC or client process crashed?), aborting tests');
     1509                fRc = False;
     1510                break;
     1511
    15051512            reporter.testStart(sTestNm);
    1506 
    15071513            if sShortNm is None or sShortNm in self.asTests:
    15081514                # Returns (fRc, oTxsSession, oSession) - but only the first one is mandatory.
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