VirtualBox

Ignore:
Timestamp:
May 6, 2022 1:09:27 PM (3 years ago)
Author:
vboxsync
Message:

Validation Kit/unit tests: If the testcase source does not exist for whatever reason, just mark it as skipped instead of reporting an error. bugref:10195

File:
1 edited

Legend:

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

    r94528 r94898  
    966966                asDirsToRemove.append(sDstDir);
    967967
     968            sSrc = sFullPath + self.sExeSuff;
     969            # If the testcase source does not exist for whatever reason, just mark it as skipped
     970            # instead of reporting an error.
     971            if not self._wrapPathExists(sSrc):
     972                fSkipped = True;
     973                return fSkipped;
     974
    968975            sDst = os.path.join(sDstDir, os.path.basename(sFullPath) + self.sExeSuff);
    969             self._wrapCopyFile(sFullPath + self.sExeSuff, sDst, 0o755);
     976            self._wrapCopyFile(sSrc, sDst, 0o755);
    970977            asFilesToRemove.append(sDst);
    971978
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