VirtualBox

Ignore:
Timestamp:
Jun 10, 2019 11:10:46 PM (5 years ago)
Author:
vboxsync
Message:

ValKit/vboxwrappers.py: Made ProgressWrapper.logResult return True on success instead of 0. Goes better with the False it returns on failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r79056 r79068  
    378378
    379379    def logResult(self, fIgnoreErrors = False):
    380         """ Logs the result. """
     380        """
     381        Logs the result, failure logged as error unless fIgnoreErrors is True.
     382        Return True on success, False on failure (and fIgnoreErrors is false).
     383        """
    381384        sText = self.stringifyResult();
    382         if      self.isCompleted() and self.getResult() < 0 \
    383             and fIgnoreErrors is False:
     385        if self.isCompleted() and self.getResult() < 0 and fIgnoreErrors is False:
    384386            return reporter.error(sText);
    385         return reporter.log(sText);
     387        reporter.log(sText);
     388        return True;
    386389
    387390    def waitOnProgress(self, cMsInterval = 1000):
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