VirtualBox

Changeset 59547 in vbox for trunk


Ignore:
Timestamp:
Feb 1, 2016 3:45:16 PM (9 years ago)
Author:
vboxsync
Message:

ValidationKit/tests/additions/tdAddBasic1.py: Some tweaks to make the Windows test boxes happy.

File:
1 edited

Legend:

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

    r56295 r59547  
    214214            asLogFile = [sWinDir+'setupapi.log', sWinDir+'setupact.log', sWinDir+'setuperr.log'];
    215215
     216            # Apply The SetupAPI logging level so that we also get the (most verbose) setupapi.dev.log file.
     217            ## @todo !!! HACK ALERT !!! Add the value directly into the testing source image. Later.
     218            fHaveSetupApiDevLog = self.txsRunTest(oTxsSession, 'Enabling setupapi.dev.log', 30 * 1000, \
     219                'c:\\Windows\\System32\\reg.exe', ('c:\\Windows\\System32\\reg.exe', \
     220                'add', '"HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Setup"', '/v', 'LogLevel', '/t', 'REG_DWORD', \
     221                '/d', '0xFF'));
     222
     223        # On some guests the files in question still can be locked by the OS, so ignore deletion
     224        # errors from the guest side (e.g. sharing violations) and just continue.
    216225        for sFile in asLogFile:
    217             self.txsRmFile(oSession, oTxsSession, sFile);
     226            self.txsRmFile(oSession, oTxsSession, sFile, 10 * 1000, fIgnoreErrors = True);
    218227
    219228        # Install the public signing key.
     
    229238        fRc = self.txsRunTest(oTxsSession, 'VBoxWindowsAdditions.exe', 5 * 60 * 1000, \
    230239            '${CDROM}/VBoxWindowsAdditions.exe', ('${CDROM}/VBoxWindowsAdditions.exe', '/S', '/l', '/with_autologon'));
    231         # For testing the installation (D)3D stuff ('/with_d3d') we need to boot up in safe mode.
     240        ## @todo For testing the installation (D)3D stuff ('/with_d3d') we need to boot up in safe mode.
    232241
    233242        #
     
    244253            asLogFile.append(sGuestAddsDir + 'install_drivers.log');
    245254            asLogFile.append('C:/Windows/setupapi.log');
    246             asLogFile.append('C:/Windows/setupapi.dev.log');
     255
     256            # Note: setupapi.dev.log only is available since Windows 2000.
     257            if fHaveSetupApiDevLog:
     258                asLogFile.append('C:/Windows/setupapi.dev.log');
    247259
    248260            #
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