VirtualBox

Ignore:
Timestamp:
Feb 26, 2019 3:47:23 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129053
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

    r76886 r77470  
    3030__version__ = "$Revision$"
    3131
     32# pylint: disable=unnecessary-semicolon
    3233
    3334# Standard Python imports.
     
    32923293        fRc = True;
    32933294        for sGstFile in asFiles:
     3295            # First try to remove (unlink) an existing temporary file, as we don't truncate the file.
     3296            try:    os.unlink(sTmpFile);
     3297            except: pass;
    32943298            ## @todo Check for already existing files on the host and create a new
    32953299            #        name for the current file to download.
     
    32973301            reporter.log2('Downloading file "%s" to "%s" ...' % (sGstFile, sTmpFile));
    32983302            fRc = self.txsDownloadFile(oSession, oTxsSession, sGstFile, sTmpFile, 30 * 1000, fIgnoreErrors);
    3299             try:    os.unlink(sTmpFile);
    3300             except: pass;
    33013303            if fRc:
    33023304                reporter.addLogFile(sTmpFile, 'misc/other', 'guest - ' + sGstFile);
     
    38223824            sRet = None;
    38233825        return sRet;
    3824 
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette