VirtualBox

Ignore:
Timestamp:
Mar 28, 2018 10:50:00 AM (7 years ago)
Author:
vboxsync
Message:

Guest Control/ValidationKit: Only do tests on their corresponding host OSes.

File:
1 edited

Legend:

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

    r71532 r71534  
    31133113        if oTestVm.isWindows():
    31143114            sUser = "Administrator";
     3115            sScratch = "C:\\Temp\\vboxtest\\testGuestCtrlCopyTo\\";
    31153116        else:
    31163117            sUser = "vbox";
    31173118        sPassword = "password";
    3118 
    3119         if oTestVm.isWindows():
    3120             sScratch = "C:\\Temp\\vboxtest\\testGuestCtrlCopyTo\\";
    31213119
    31223120        if oTxsSession.syncMkDir('${SCRATCH}/testGuestCtrlCopyTo') is False:
     
    31963194
    31973195            if self.oTstDrv.fpApiVer > 5.2: # Copying directories via Main is supported only in versions > 5.2.
    3198                 aaTests.extend([
    3199                     # Copying directories with contain files we don't have read access to.
    3200                     [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\security',
    3201                                     sDst = sScratch),
    3202                         tdTestResult(fRc = False) ],
    3203                     # Copying directories with regular files.
    3204                     [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Help',
    3205                                     sDst = sScratch),
    3206                         tdTestResult(fRc = True) ]
    3207                     ]);
     3196                if self.oTstDrv.sHost == "win":
     3197                    aaTests.extend([
     3198                        # Copying directories with contain files we don't have read access to.
     3199                        [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\security',
     3200                                       sDst = sScratch),
     3201                            tdTestResult(fRc = False) ],
     3202                        # Copying directories with regular files.
     3203                        [ tdTestCopyTo(sUser = sUser, sPassword = sPassword, sSrc = 'C:\\Windows\\Help',
     3204                                       sDst = sScratch),
     3205                            tdTestResult(fRc = True) ]
     3206                        ]);
    32083207        else:
    32093208            reporter.log('No OS-specific tests for non-Windows yet!');
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