VirtualBox

Changeset 77472 in vbox


Ignore:
Timestamp:
Feb 26, 2019 3:55:06 PM (6 years ago)
Author:
vboxsync
Message:

Validation Kit/testdriver: Fixed downloading guest files via txsService -- do the temporary file truncation before the download, not after.

File:
1 edited

Legend:

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

    r77470 r77472  
    32933293        fRc = True;
    32943294        for sGstFile in asFiles:
     3295            sTmpFile = os.path.join(self.sScratchPath, 'tmp-' + os.path.basename(sGstFile));
     3296            reporter.log2('Downloading file "%s" to "%s" ...' % (sGstFile, sTmpFile));
    32953297            # First try to remove (unlink) an existing temporary file, as we don't truncate the file.
    32963298            try:    os.unlink(sTmpFile);
     
    32983300            ## @todo Check for already existing files on the host and create a new
    32993301            #        name for the current file to download.
    3300             sTmpFile = os.path.join(self.sScratchPath, 'tmp-' + os.path.basename(sGstFile));
    3301             reporter.log2('Downloading file "%s" to "%s" ...' % (sGstFile, sTmpFile));
    33023302            fRc = self.txsDownloadFile(oSession, oTxsSession, sGstFile, sTmpFile, 30 * 1000, fIgnoreErrors);
    33033303            if fRc:
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