VirtualBox

Changeset 65309 in vbox


Ignore:
Timestamp:
Jan 16, 2017 9:43:20 AM (8 years ago)
Author:
vboxsync
Message:

testdriver: append '/abort' to the log lines of scripts doing the 'abort' action.

Location:
trunk/src/VBox/ValidationKit/testdriver
Files:
2 edited

Legend:

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

    r65230 r65309  
    16401640            reporter.log('*** extract action completed (fRc=%s) ***' % (fRc));
    16411641        elif 'abort' in asActions:
     1642            reporter.appendToProcessName('/abort'); # Make it easier to spot in the log.
    16421643            reporter.log('*** abort action ***');
    16431644            asActions.remove('abort');
  • trunk/src/VBox/ValidationKit/testdriver/reporter.py

    r62484 r65309  
    102102        """Increases the debug level."""
    103103        self.iDebug += 1;
     104
     105    def appendToProcessName(self, sAppend):
     106        """
     107        Appends sAppend to the base process name.
     108        Returns the new process name.
     109        """
     110        self.sName = os.path.splitext(os.path.basename(sys.argv[0]))[0] + sAppend;
     111        return self.sName;
     112
    104113
    105114    #
     
    13681377    return g_oReporter.incDebug()
    13691378
     1379def appendToProcessName(sAppend):
     1380    """
     1381    Appends sAppend to the base process name.
     1382    Returns the new process name.
     1383    """
     1384    return g_oReporter.appendToProcessName(sAppend);
     1385
    13701386def getErrorCount():
    13711387    """
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