VirtualBox

Ignore:
Timestamp:
May 8, 2018 4:55:20 PM (7 years ago)
Author:
vboxsync
Message:

Validation Kit/Guest Control: disable a pushy test which can fill up the guest's disk, and make the "copy some random directory of the host" tests specific to Windows hosts use the right directory even if the OS isn't in C:\Windows.

File:
1 edited

Legend:

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

    r72112 r72169  
    31603160                [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = ''),
    31613161                  tdTestResult(fRc = False) ],
    3162                 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows',
     3162                [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = '/placeholder',
    31633163                               aFlags = [ 80 ] ),
    31643164                  tdTestResult(fRc = False) ],
     
    31663166                [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sDst = ''),
    31673167                  tdTestResult(fRc = False) ],
    3168                 [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sDst = 'C:\\Windows',
     3168                [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sDst = '/placeholder',
    31693169                               aFlags = [ 80 ] ),
    31703170                  tdTestResult(fRc = False) ],
     
    32213221                ]);
    32223222
    3223                 if oTestVm.isWindows():
    3224                     aaTests.extend([
    3225                         # Copy the same file over to the guest, but this time store the file into the former
    3226                         # file's ADS (Alternate Data Stream). Only works on Windows, of course.
    3227                         [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO,
    3228                                        sDst = os.path.join(sScratchGst, 'HostGuestAdditions.iso:ADS-Test')),
    3229                           tdTestResult(fRc = True) ]
    3230                     ]);
     3223                aaTests.extend([
     3224                    # Copy the same file over to the guest, but this time store the file into the former
     3225                    # file's ADS (Alternate Data Stream). Only works on Windows, of course.
     3226                    [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = sVBoxValidationKitISO,
     3227                                   sDst = os.path.join(sScratchGst, 'HostGuestAdditions.iso:ADS-Test')),
     3228                      tdTestResult(fRc = True) ]
     3229                ]);
    32313230
    32323231            #
     
    32353234            if self.oTstDrv.fpApiVer > 5.2: # Copying directories via Main is supported only in versions > 5.2.
    32363235                if self.oTstDrv.sHost == "win":
     3236                    sSystemRoot = os.getenv('SystemRoot', 'C:\\Windows')
    32373237                    aaTests.extend([
    32383238                        # Copying directories with contain files we don't have read access to.
    3239                         [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\security',
    3240                                        sDst = sScratchGst, aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]),
    3241                           tdTestResult(fRc = False) ],
     3239                        ## @todo r=klaus disabled, because this can fill up the guest disk, making other tests fail,
     3240                        ## additionally it's not really clear if this fails reliably on all Windows versions, even
     3241                        ## the old ones like XP with a "proper" administrator.
     3242                        #[ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = os.path.join(sSystemRoot, 'security',
     3243                        #               sDst = sScratchGst, aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]),
     3244                        #  tdTestResult(fRc = False) ],
    32423245                        # Copying directories with regular files.
    3243                         [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Help',
     3246                        [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = os.path.join(sSystemRoot, 'Help',
    32443247                                       sDst = sScratchGst, aFlags = [ vboxcon.DirectoryCopyFlag_CopyIntoExisting ]),
    32453248                          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