VirtualBox

Changeset 60851 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 5, 2016 5:11:08 PM (9 years ago)
Author:
vboxsync
Message:

ValidationKit: Make sure we close all files when Session.taskExec() returns. Fixes submitting data form the test pipe to the testmanager

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

Legend:

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

    r60818 r60851  
    905905        self.sPrefix = sPrefix;
    906906
     907    def __del__(self):
     908        self.close();
     909
     910    def close(self):
     911        """ file.close """
     912        # Nothing to be done.
     913        return;
     914
    907915    def read(self, cb):
    908916        """file.read"""
  • trunk/src/VBox/ValidationKit/testdriver/txsclient.py

    r56295 r60851  
    903903            if o is not None and not isinstance(o, basestring):
    904904                del o.uTxsClientCrc32;      # pylint: disable=E1103
     905                o.close();                  # Make sure the files are closed
    905906        reporter.log('taskExecEx: returns %s' % (rc));
    906907        return rc;
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