Changeset 71847 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Apr 12, 2018 12:23:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r71828 r71847 3370 3370 sDst = sScratchHst + "/"), 3371 3371 tdTestResult(fRc = True) ], 3372 # Destination is a directory ( should fail).3372 # Destination is a directory (without a trailing slash, should also work). 3373 3373 # See "cp" syntax. 3374 3374 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3375 3375 sDst = sScratchHst), 3376 tdTestResult(fRc = True) ], 3377 # Destination is a non-existing directory. 3378 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll', 3379 sDst = sScratchHst + "/non-existing-directory/"), 3376 3380 tdTestResult(fRc = False) ] 3377 3381 ]); … … 3384 3388 # Copying entire directories (destination is "<sScratch>", which exists, which should fail). 3385 3389 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web', 3386 sDst = sScratchHst),3390 sDst = sScratchHst), 3387 3391 tdTestResult(fRc = False) ], 3388 # Copying entire directories (destination is "<sScratch>\Web"). 3389 # Should fail, as the corresponding flag is missing. 3392 # Ditto, with trailing slash. 3390 3393 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web', 3391 sDst = sScratchHst + "/"),3394 sDst = sScratchHst + "/"), 3392 3395 tdTestResult(fRc = False) ], 3393 # Next try with correctflag being set.3396 # Next try with the DirectoryCopyFlag_CopyIntoExisting flag being set. 3394 3397 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web', 3395 sDst = sScratchHst + "/", aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]),3398 sDst = sScratchHst, aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]), 3396 3399 tdTestResult(fRc = True) ], 3397 # Copying contents of directories (destination is "<sScratch>/"). 3400 # Ditto, with trailing slash. 3401 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web', 3402 sDst = sScratchHst + "/", aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]), 3403 tdTestResult(fRc = True) ], 3404 # Copying contents of directories into a non-existing directory chain on the host which fail. 3398 3405 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web\\', 3399 sDst = sScratchHst + "/", aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]), 3406 sDst = sScratchHst + "/not/existing/", aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]), 3407 tdTestResult(fRc = False) ], 3408 # Copying contents of directories into a non-existing directory on the host, which should succeed. 3409 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web\\', 3410 sDst = sScratchHst + "/no-existing/", aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]), 3400 3411 tdTestResult(fRc = True) ] 3401 3412 ]);
Note:
See TracChangeset
for help on using the changeset viewer.