VirtualBox

Changeset 61458 in vbox


Ignore:
Timestamp:
Jun 4, 2016 12:02:44 AM (8 years ago)
Author:
vboxsync
Message:

testdriver/base.py: log more in the timeout adjusting / deadline handling to figure out what goes wrong on windows.

File:
1 edited

Legend:

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

    r59813 r61458  
    845845        if self.secTimeoutAbs is not None:
    846846            self.secTimeoutAbs = long(self.secTimeoutAbs);
     847            reporter.log('secTimeoutAbs: %s' % (self.secTimeoutAbs,));
     848        else:
     849            reporter.log('TESTBOX_TIMEOUT_ABS not found in the environment');
     850
    847851
    848852        # Distance from secTimeoutAbs that timeouts should be adjusted to.
     
    869873        print >> sys.stderr, "testdriver.base: asNormalActions   = '%s'" % self.asNormalActions;
    870874        print >> sys.stderr, "testdriver.base: asActions         = '%s'" % self.asActions;
     875        print >> sys.stderr, "testdriver.base: secTimeoutAbs     = '%s'" % self.secTimeoutAbs;
     876        for sVar in sorted(os.environ.keys()):
     877            print >> sys.stderr, "os.environ[%s] = '%s'" % (sVar, os.environ[sVar],);
    871878
    872879    #
     
    12441251                    reporter.log('adjusting timeout: %s ms -> %s ms (deadline)\n' % (cMsTimeout, cMsToDeadline,));
    12451252                    return cMsToDeadline;
    1246 
    1247             #else: Don't bother, we've passed the deadline.
     1253                reporter.log('adjustTimeoutMs: cMsTimeout (%s) > cMsToDeadline (%s)' % (cMsTimeout, cMsToDeadline,));
     1254            else:
     1255                # Don't bother, we've passed the deadline.
     1256                reporter.log('adjustTimeoutMs: ooops! cMsToDeadline=%s (%s), utils.timestampMilli()=%s'
     1257                             % (cMsToDeadline, cMsToDeadline*1000, utils.timestampMilli(),));
    12481258
    12491259        # Only enforce the minimum timeout if specified.
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