VirtualBox

Ignore:
Timestamp:
Feb 27, 2024 1:06:51 PM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161940
Message:

ValKit: remoteexecutor.py, added logging for rmTree function; vboxtestvms.py, switched win8-64 vm as previos one had Administrator user was disabled unexpectedly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py

    r103337 r103587  
    301301    def rmTree(self, sDir, cMsTimeout = 30000):
    302302        """
    303         Recursively removes all files and sub directories including the given directory.
    304         """
    305         fRc = True;
    306         if self.oTxsSession is not None:
     303        Recursively removes all files and subdirectories including the given directory.
     304        """
     305        fRc = True;
     306        if self.oTxsSession is not None:
     307            reporter.log("rmTree (%s) using txs" % sDir);
    307308            fRc = self.oTxsSession.syncRmTree(sDir, cMsTimeout);
    308309        else:
    309310            try:
    310                 shutil.rmtree(sDir, ignore_errors=True);
     311                reporter.log("rmTree (%s) using shutil.rmtree function" % sDir);
     312                shutil.rmtree(sDir);
    311313            except:
    312314                fRc = False;
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