VirtualBox

Changeset 62100 in vbox for trunk


Ignore:
Timestamp:
Jul 7, 2016 10:06:39 AM (9 years ago)
Author:
vboxsync
Message:

reporter.doPollWork: Added debug string to see who is calling.

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

Legend:

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

    r62094 r62100  
    517517                except:
    518518                    pass;
    519                 reporter.doPollWork();
     519                reporter.doPollWork('TdTaskBase.waitForTask');
    520520                fState = self.pollTask(True);
    521521
     
    11181118                        cMsSleep = 1000;
    11191119                    fMore = self.waitForTasksSleepWorker(cMsSleep);
    1120                     reporter.doPollWork(); # shouldn't be necessary, remove when we figure why...
     1120                    reporter.doPollWork('TestDriverBase.waitForTasks'); # shouldn't be necessary, remove when we figure why...
    11211121        except KeyboardInterrupt:
    11221122            self.fInterrupted = True;
  • trunk/src/VBox/ValidationKit/testdriver/reporter.py

    r62099 r62100  
    290290    #
    291291
    292     def doPollWork(self):
     292    def doPollWork(self, sDebug = None):
    293293        """
    294294        Check if any pending stuff expired and needs doing.
    295295        """
     296        _ = sDebug;
    296297        return None;
    297298
     
    889890        return False;
    890891
    891     def _xmlFlushIfNecessary(self, fPolling = False):
     892    def _xmlFlushIfNecessary(self, fPolling = False, sDebug = None):
    892893        """Flushes the XML back log if necessary."""
    893894        tsNow = utils.timestampSecond();
     
    896897        if fPolling is not True:
    897898            self._secTsXmlLast = tsNow;
    898         self._writeOutput('xml-debug/%s: %s s since flush, %s s since poll'
    899                           % (len(self._asXml), cSecs, cSecsLast,)); # temporarily while debugging flush/poll problem.
     899        self._writeOutput('xml-debug/%s: %s s since flush, %s s since poll %s'
     900                          % (len(self._asXml), cSecs, cSecsLast, sDebug if sDebug is not None else '', )); # temporarily
    900901
    901902        # Absolute flush thresholds.
     
    941942        return None;
    942943
    943     def doPollWork(self):
     944    def doPollWork(self, sDebug = None):
    944945        if len(self._asXml) > 0:
    945946            g_oLock.acquire();
    946             self._xmlFlushIfNecessary(fPolling = True);
     947            self._xmlFlushIfNecessary(fPolling = True, sDebug = sDebug);
    947948            g_oLock.release();
    948949        return None;
     
    13791380    return cErrors;
    13801381
    1381 def doPollWork():
     1382def doPollWork(sDebug = None):
    13821383    """
    13831384    This can be called from wait loops and similar to make the reporter call
    13841385    home with pending XML and such.
    13851386    """
    1386     g_oReporter.doPollWork();
     1387    g_oReporter.doPollWork(sDebug);
    13871388    return None;
    13881389
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r61956 r62100  
    22892289                return -1
    22902290
    2291             reporter.doPollWork();
     2291            reporter.doPollWork('vbox.TestDriver.waitOnProgress');
    22922292            try:    oProgress.waitForCompletion(cMsInterval);
    22932293            except: return -2;
  • trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r62094 r62100  
    223223            except KeyboardInterrupt: raise;
    224224            except: pass;
    225             reporter.doPollWork();
     225            reporter.doPollWork('ProgressWrapper.waitForTask');
    226226            fState = self.pollTask(False);
    227227        return fState;
     
    410410                reporter.errorXcpt(self.sName);
    411411                return -2;
    412             reporter.doPollWork();
     412            reporter.doPollWork('ProgressWrapper.wait');
    413413
    414414        try:
     
    483483                    reporter.errorXcpt(self.sName);
    484484                return -2;
    485             reporter.doPollWork();
     485            reporter.doPollWork('ProgressWrapper.waitForOperation');
    486486        # Not reached.
    487487
     
    677677            except KeyboardInterrupt: raise;
    678678            except: pass;
    679             reporter.doPollWork();
     679            reporter.doPollWork('SessionWrapper.waitForTask');
    680680            fState = self.pollTask(False);
    681681        return fState;
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