VirtualBox

Changeset 100699 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Jul 25, 2023 6:01:20 PM (19 months ago)
Author:
vboxsync
Message:

ValKit/tdAddGuestCtrl.py: Check if VM needs reboot before installing GAs

File:
1 edited

Legend:

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

    r99717 r100699  
    363363        Since this involves rebooting the guest, we will have to create a new TXS session.
    364364        """
     365        if oTestVm.sKind not in ('WindowsNT4', 'Windows2000',):
     366            fGuestRequiresReboot = False;
     367            sRegExe = oTestVm.pathJoin(self.getGuestSystemDir(oTestVm), 'reg.exe');
     368            fGuestRequiresReboot = self.txsRunTest(oTxsSession, 'Check if reboot is required', 30 * 1000,
     369                                                    sRegExe,
     370                                                    (sRegExe, 'query',
     371                                                    '"HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update\\RebootRequired"'));
     372            reporter.log('Status of RebootRequired query is %s' % fGuestRequiresReboot);
    365373
    366374        # Set system-wide env vars to enable release logging on some applications.
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