VirtualBox

Changeset 98070 in vbox


Ignore:
Timestamp:
Jan 13, 2023 9:53:51 AM (23 months ago)
Author:
vboxsync
Message:

Validation Kit/tdUnitTest1.py: Fixed running locally on Windows (hosts).

File:
1 edited

Legend:

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

    r98040 r98070  
    395395        self.sUnitTestsPathDst = None;
    396396
    397         # Will be determined before executing the actual unit tests.
    398         self.sExeSuff   = '';
     397        # The executable suffix to use for the executing the actual testcases.
     398        # Will be re-set when executing the testcases on a remote (VM) once we know
     399        # what type of suffix to use then (based on guest OS).
     400        self.sExeSuff = base.exeSuff();
    399401
    400402        self.aiVBoxVer  = (4, 3, 0, 0);
     
    496498
    497499            for sCandidat in asCandidates:
    498                 if os.path.exists(os.path.join(sCandidat, 'testcase', 'tstVMStructSize' + self.sExeSuff)):
     500                # The path of tstVMStructSize acts as a beacon to know where all other testcases are.
     501                sFileBeacon = os.path.join(sCandidat, 'testcase', 'tstVMStructSize' + self.sExeSuff);
     502                reporter.log2('Searching for "%s" ...' % sFileBeacon);
     503                if os.path.exists(sFileBeacon):
    499504                    self.sUnitTestsPathSrc = sCandidat;
    500505                    break
     
    674679                self.sExeSuff = '';
    675680        else:
    676             self.sExeSuff = base.exeSuff();
     681            # For local tests this already is set in __init__
     682            pass;
    677683
    678684        self._testRunUnitTestsSet(oTestVm, r'^tst*', 'testcase');
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