VirtualBox

Ignore:
Timestamp:
May 23, 2019 1:24:51 AM (6 years ago)
Author:
vboxsync
Message:

tdAddSharedFolders1.py: Reduced the --many-files value so we don't waste time testing the host file system handling of big directories. Also, dropped one of the 'FsPerf' test levels (was three, now only two). bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddSharedFolders1.py

    r78677 r78678  
    157157        # Run FsPerf inside the guest.
    158158        #
    159         reporter.testStart('FsPerf');
    160159        fSkip = 'fsperf' not in self.asTests;
    161160        if fSkip is False:
     
    193192                asArgs.append('--add-block-size=134217728'); # 128 MiB
    194193
     194            # Putting lots (10000) of files in a single directory causes issues on OS X
     195            # (HFS+ presumably, though could be slow disks) and some linuxes (slow disks,
     196            # maybe ext2/3?).  So, generally reduce the file count to 4096 everywhere
     197            # since we're not here to test the host file systems, and 3072 on macs.
     198            if utils.getHostOs() in [ 'darwin', ]:
     199                asArgs.append('--many-files=3072');
     200            elif utils.getHostOs() in [ 'linux', ]:
     201                asArgs.append('--many-files=4096');
     202
     203            # Add the extra arguments from the command line and kick it off:
    195204            asArgs.extend(self.asExtraArgs);
    196205            reporter.log2('Starting guest FsPerf (%s)...' % (asArgs,));
     
    204213                try:    shutil.rmtree(sTestDir);
    205214                except: fRc = reporter.errorXcpt('shutil.rmtree(%s)' % (sTestDir,));
    206 
    207         reporter.testDone(fSkip or fRc is None);
    208 
     215        else:
     216            reporter.testStart('FsPerf');
     217            reporter.testDone(fSkip or fRc is None);
    209218
    210219        return (fRc, oTxsSession);
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