VirtualBox

Changeset 72081 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 2, 2018 12:19:55 PM (7 years ago)
Author:
vboxsync
Message:

Guest Control/Validation Kit: Try to fix the failing tests.

File:
1 edited

Legend:

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

    r72068 r72081  
    31203120        if oTestVm.isWindows():
    31213121            sUser = "Administrator";
    3122             sScratchGst = "C:\\Temp\\vboxtest\\testGuestCtrlCopyTo/";
     3122            sScratchGst = "C:\\Temp\\vboxtest\\testGuestCtrlCopyTo\\";
    31233123            sScratchGstNotExist = "C:\\does-not-exist\\";
    31243124            sScratchGstInvalid = "?*|invalid-name?*|";
     
    33063306        sPassword = "password";
    33073307
     3308        sScratchHst = os.path.join(self.oTstDrv.sScratchPath, "testGctrlCopyFrom");
     3309
    33083310        if self.oTstDrv.sHost == "win":
    3309             sScratchHstInvalid = "?*|invalid-name?*|";
     3311            sScratchHstNotExist = sScratchHst + "\\does-not-exist\\";
     3312            sScratchHstInvalid  = "?*|invalid-name?*|";
    33103313        else:
    3311             sScratchHstInvalid = "/";
    3312 
    3313         sScratchHst = os.path.join(self.oTstDrv.sScratchPath, "testGctrlCopyFrom");
     3314            sScratchHstNotExist = sScratchHst + "/does-not-exist/";
     3315            sScratchHstInvalid  = "/";
     3316
    33143317        try:
    33153318            os.makedirs(sScratchHst);
     
    33863389                    # Destination is a non-existing directory.
    33873390                    [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\system32\\ole32.dll',
    3388                                      sDst = sScratchHst + "/non-existing-directory/"),
     3391                                     sDst = sScratchHstNotExist),
    33893392                      tdTestResult(fRc = False) ]
    33903393                ]);
     
    34143417                    # Copying contents of directories into a non-existing directory chain on the host which fail.
    34153418                    [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web\\',
    3416                                      sDst = sScratchHst + "/not/existing/",
     3419                                     sDst = sScratchHstNotExist,
    34173420                                     aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]),
    34183421                      tdTestResult(fRc = False) ],
    34193422                    # Copying contents of directories into a non-existing directory on the host, which should succeed.
    34203423                    [ tdTestCopyFrom(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Web\\',
    3421                                      sDst = sScratchHst + "/no-existing/",
     3424                                     sDst = sScratchHstNotExist,
    34223425                                     aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]),
    34233426                      tdTestResult(fRc = True) ]
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