VirtualBox

Changeset 62104 in vbox for trunk


Ignore:
Timestamp:
Jul 7, 2016 1:50:13 PM (9 years ago)
Author:
vboxsync
Message:

testdriver: Changed reporter.flushall() to also flush the XML stream to the server (helps with VBox install/uninstall which is already using it). Made startVmAndconnectToTxsViaTcp do a flushall before starting the VM. Added report.doPollWork in vbox.TestDriver.waitForTasksSleepWorker.

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

Legend:

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

    r62100 r62104  
    11181118                        cMsSleep = 1000;
    11191119                    fMore = self.waitForTasksSleepWorker(cMsSleep);
    1120                     reporter.doPollWork('TestDriverBase.waitForTasks'); # shouldn't be necessary, remove when we figure why...
    11211120        except KeyboardInterrupt:
    11221121            self.fInterrupted = True;
  • trunk/src/VBox/ValidationKit/testdriver/reporter.py

    r62100 r62104  
    15621562    return fRc;
    15631563
    1564 def flushall():
     1564def flushall(fSkipXml = False):
    15651565    """
    15661566    Flushes all output streams, both standard and logger related.
     1567    This may also push data to the remote test manager.
    15671568    """
    15681569    try:    sys.stdout.flush();
     
    15711572    except: pass;
    15721573
    1573     # Note! Current no logger specific streams to flush.
     1574    g_oLock.acquire();
     1575    fRc = g_oReporter.xmlFlush(fRetry = False);
     1576    g_oLock.release();
    15741577
    15751578    return True;
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r62100 r62104  
    17781778            rc = self.oVBoxMgr.waitForEvents(int(cMsTimeout));
    17791779            _ = rc; #reporter.log2('vbox.waitForTasksSleepWorker(%u): true (waitForEvents -> %s)' % (cMsTimeout, rc));
     1780            reporter.doPollWork('vbox.TestDriver.waitForTasksSleepWorker');
    17801781            return True;
    17811782        except KeyboardInterrupt:
     
    31853186        # Start the VM.
    31863187        reporter.log('startVmAndConnectToTxsViaTcp: Starting(/preparing) "%s" (timeout %s s)...' % (sVmName, cMsTimeout / 1000));
     3188        reporter.flushall();
    31873189        oSession = self.startVmByName(sVmName);
    31883190        if oSession is not None:
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