VirtualBox

Changeset 99170 in vbox for trunk


Ignore:
Timestamp:
Mar 24, 2023 9:57:55 AM (22 months ago)
Author:
vboxsync
Message:

Validation Kit/testdriver: Log task function callback names for easier debugging.

File:
1 edited

Legend:

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

    r98992 r99170  
    37513751        fRemoveTxs = self.addTask(oTxsSession);
    37523752
     3753        reporter.log2('txsDoTask(%s): Running' % (str(fnAsync)));
    37533754        rc = fnAsync(*aArgs); # pylint: disable=star-args
    37543755        if rc is True:
     
    37593760                    rc = oTxsSession.getResult();
    37603761                elif fIgnoreErrors is True:
    3761                     reporter.log(  'txsDoTask: task failed (%s)' % (oTxsSession.getLastReply()[1],));
     3762                    reporter.log(  'txsDoTask(%s): task failed (%s)' % (str(fnAsync), oTxsSession.getLastReply()[1],));
    37623763                else:
    3763                     reporter.error('txsDoTask: task failed (%s)' % (oTxsSession.getLastReply()[1],));
     3764                    reporter.error('txsDoTask(%s): task failed (%s)' % (str(fnAsync), oTxsSession.getLastReply()[1],));
    37643765            else:
    37653766                oTxsSession.cancelTask();
    37663767                if oTask is None:
    37673768                    if fIgnoreErrors is True:
    3768                         reporter.log(  'txsDoTask: The task timed out.');
     3769                        reporter.log(  'txsDoTask(%s): The task timed out.' % (str(fnAsync)));
    37693770                    else:
    3770                         reporter.errorTimeout('txsDoTask: The task timed out.');
     3771                        reporter.errorTimeout('txsDoTask(%s): The task timed out.' % (str(fnAsync)));
    37713772                elif oTask is oSession:
    3772                     reporter.error('txsDoTask: The VM terminated unexpectedly');
     3773                    reporter.error('txsDoTask(%s): The VM terminated unexpectedly' % (str(fnAsync)));
    37733774                else:
    37743775                    if fIgnoreErrors is True:
    3775                         reporter.log(  'txsDoTask: An unknown task %s was returned' % (oTask,));
     3776                        reporter.log(  'txsDoTask(%s): An unknown task %s was returned' % (str(fnAsync), oTask,));
    37763777                    else:
    3777                         reporter.error('txsDoTask: An unknown task %s was returned' % (oTask,));
     3778                        reporter.error('txsDoTask(%s): An unknown task %s was returned' % (str(fnAsync), oTask,));
    37783779        else:
    3779             reporter.error('txsDoTask: fnAsync returned %s' % (rc,));
     3780            reporter.error('txsDoTask(%s) returned %s' % (str(fnAsync), rc,));
    37803781
    37813782        if fRemoveTxs:
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