VirtualBox

Changeset 98040 in vbox


Ignore:
Timestamp:
Jan 10, 2023 5:05:52 PM (23 months ago)
Author:
vboxsync
Message:

Validation Kit/tdUnitTest1.py: When started in verbose mode, log the scratch path contents if not finding the testcases for some reason.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py

    r97952 r98040  
    504504            else:
    505505                reporter.error('Unable to find unit test source dir. Candidates: %s' % (asCandidates,));
     506                if reporter.getVerbosity() >= 2:
     507                    reporter.log('Contents of "%s"' % self.sScratchPath);
     508                    for paths, dirs, files in os.walk(self.sScratchPath):
     509                        reporter.log('{} {} {}'.format(repr(paths), repr(dirs), repr(files)));
    506510                return False
    507511
     
    670674                self.sExeSuff = '';
    671675        else:
    672             self.sExeSuff = '.exe' if utils.getHostOs() in [ 'win', 'dos', 'os2' ] else '';
     676            self.sExeSuff = base.exeSuff();
    673677
    674678        self._testRunUnitTestsSet(oTestVm, r'^tst*', 'testcase');
     
    685689        reporter.log('           Target: %s' % (oTestVm.sVmName if oTestVm else 'local',));
    686690        reporter.log('             Mode: %s' % (self.sMode,));
     691        reporter.log('       Exe suffix: %s' % (self.sExeSuff,));
    687692        reporter.log('Unit tests source: %s %s'
    688693                     % (self.sUnitTestsPathSrc, '(on remote)' if self.sMode == 'remote-exec' else '',));
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