VirtualBox

Changeset 71671 in vbox


Ignore:
Timestamp:
Apr 5, 2018 8:45:50 AM (7 years ago)
Author:
vboxsync
Message:

Guest Control/Validation Kit: Copying files into directories via Main is supported only in versions > 5.2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r71668 r71671  
    33473347                [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',
    33483348                                 sDst = os.path.join(sScratch, 'renamedfile.dll')),
    3349                   tdTestResult(fRc = True) ],
    3350                 # Destination is a directory with a trailing slash (should work).
    3351                 # See "cp" syntax.
    3352                 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',
    3353                                  sDst = sScratch + "/"),
    3354                   tdTestResult(fRc = True) ],
    3355                 # Destination is a directory (should fail).
    3356                 # See "cp" syntax.
    3357                 [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',
    3358                                  sDst = sScratch),
    3359                   tdTestResult(fRc = False) ]
     3349                  tdTestResult(fRc = True) ]
    33603350            ]);
     3351
     3352            if self.oTstDrv.fpApiVer > 5.2: # Copying files into directories via Main is supported only in versions > 5.2.
     3353                aaTests.extend([
     3354                    # Destination is a directory with a trailing slash (should work).
     3355                    # See "cp" syntax.
     3356                    [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',
     3357                                    sDst = sScratch + "/"),
     3358                      tdTestResult(fRc = True) ],
     3359                    # Destination is a directory (should fail).
     3360                    # See "cp" syntax.
     3361                    [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',
     3362                                    sDst = sScratch),
     3363                      tdTestResult(fRc = False) ]
     3364                ]);
    33613365
    33623366            #
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