Changeset 97421 in vbox for trunk/src/VBox/ValidationKit/tests/additions
- Timestamp:
- Nov 6, 2022 1:45:35 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r97420 r97421 4845 4845 if self.oTstDrv.fpApiVer > 5.2: # Copying files into directories via Main is supported only 6.0 and later. 4846 4846 atTests.extend([ 4847 [ tdTestCopyToFile(sSrc = sBigFileHst, sDst = sScratchGst), tdTestResultSuccess() ], 4848 [ tdTestCopyToFile(sSrc = sBigFileHst, sDst = sScratchGst), tdTestResultSuccess() ], # Overwrite 4847 # Should succeed, as the file isn't there yet on the destination. 4848 [ tdTestCopyToFile(sSrc = sBigFileHst, sDst = sScratchGst + os.path.sep), tdTestResultSuccess() ], 4849 # Overwrite the existing file. 4850 [ tdTestCopyToFile(sSrc = sBigFileHst, sDst = sScratchGst + os.path.sep), tdTestResultSuccess() ], 4851 # Same file, but with a different name on the destination. 4849 4852 [ tdTestCopyToFile(sSrc = sEmptyFileHst, sDst = oTestVm.pathJoin(sScratchGst, os.path.split(sBigFileHst)[1])), 4850 4853 tdTestResultSuccess() ], # Overwrite … … 4866 4869 atTests.extend([ 4867 4870 # Without a trailing slash added to the destination this should fail, 4868 # as the destination directory already exist .4871 # as the destination directory already exists. 4869 4872 [ tdTestCopyToDir(sSrc = sScratchEmptyDirHst, sDst = sScratchDstDir1Gst), tdTestResultFailure() ], 4870 4873 # Same existing host directory, but this time with DirectoryCopyFlag_CopyIntoExisting set. … … 5038 5041 # 5039 5042 atTests.extend([ 5040 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = os.path.join(sScratchHst, 'copyfile1')),5041 5042 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = os.path.join(sScratchHst, 'copyfile1')), # Overwrite it5043 5044 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = os.path.join(sScratchHst, 'copyfile2')),5045 5043 # Should succeed, as the file isn't there yet on the destination. 5044 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = os.path.join(sScratchHst, 'copyfile1')), tdTestResultSuccess() ], 5045 # Overwrite the existing file. 5046 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = os.path.join(sScratchHst, 'copyfile1')), tdTestResultSuccess() ], 5047 # Same file, but with a different name on the destination. 5048 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = os.path.join(sScratchHst, 'copyfile2')), tdTestResultSuccess() ], 5046 5049 ]); 5047 if self.oTstDrv.fpApiVer > 5.2: 5050 5051 if self.oTstDrv.fpApiVer > 5.2: # Copying files into directories via Main is supported only 6.0 and later. 5048 5052 # Copy into a directory. 5049 5053 atTests.extend([ 5050 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = sScratchHst), tdTestResultSuccess() ], 5054 # This should fail, as sScratchHst exists and is a directory. 5055 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = sScratchHst), tdTestResultFailure() ], 5056 # Same existing host directory, but this time with a trailing slash. 5057 # This should succeed, as the file isn't there yet on the destination. 5058 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = sScratchHst + os.path.sep), tdTestResultSuccess() ], 5059 # Overwrite the existing file. 5051 5060 [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = sScratchHst + os.path.sep), tdTestResultSuccess() ], 5052 5061 ]); 5053 5062 5054 # 5055 # Directory tree copying: 5056 # 5063 # 5064 # Directory handling. 5065 # 5066 if self.oTstDrv.fpApiVer > 5.2: # Copying directories via Main is supported only in versions > 5.2. 5057 5067 atTests.extend([ 5058 5068 # Without a trailing slash added to the destination this should fail,
Note:
See TracChangeset
for help on using the changeset viewer.