VirtualBox

Changeset 80232 in vbox for trunk/src


Ignore:
Timestamp:
Aug 12, 2019 6:51:14 PM (5 years ago)
Author:
vboxsync
Message:

ValKit/vboxinstaller.py: Made left behind drivers a cause for failure. Also fail if the installer requires a reboot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py

    r79092 r80232  
    306306                    continue;
    307307                sBase = sBase.lower();
    308                 if sBase in [ 'vboxsvc', 'virtualbox', 'virtualboxvm', 'vboxheadless', 'vboxmanage', 'vboxsdl', 'vboxwebsrv',
    309                               'vboxautostart', 'vboxballoonctrl', 'vboxbfe', 'vboxextpackhelperapp', 'vboxnetdhcp',
    310                               'vboxnetadpctl', 'vboxtestogl', 'vboxtunctl', 'vboxvmmpreload', 'vboxxpcomipcd', 'vmCreator', ]:
     308                if sBase in [ 'vboxsvc', 'vboxsds', 'virtualbox', 'virtualboxvm', 'vboxheadless', 'vboxmanage', 'vboxsdl',
     309                              'vboxwebsrv', 'vboxautostart', 'vboxballoonctrl', 'vboxbfe', 'vboxextpackhelperapp', 'vboxnetdhcp',
     310                              'vboxnetnat', 'vboxnetadpctl', 'vboxtestogl', 'vboxtunctl', 'vboxvmmpreload', 'vboxxpcomipcd', ]:
    311311                    aoTodo.append(oProcess);
    312312                if sBase.startswith('virtualbox-') and sBase.endswith('-multiarch.exe'):
     
    471471        elif sHost == 'linux':      fRc = self._uninstallVBoxOnLinux();
    472472        elif sHost == 'solaris':    fRc = self._uninstallVBoxOnSolaris(True);
    473         elif sHost == 'win':        fRc = self._uninstallVBoxOnWindows(True);
     473        elif sHost == 'win':        fRc = self._uninstallVBoxOnWindows(False);
    474474        else:
    475475            reporter.error('Unsupported host "%s".' % (sHost,));
     
    765765
    766766        # Uninstall any previous vbox version first.
    767         fRc = self._uninstallVBoxOnWindows(True);
     767        fRc = self._uninstallVBoxOnWindows(False);
    768768        if fRc is not True:
    769769            return None; # There shouldn't be anything to uninstall, and if there is, it's not our fault.
     
    775775        if sVBoxInstallPath is not None:
    776776            asArgs.extend(['INSTALLDIR="%s"' % (sVBoxInstallPath,)]);
     777
    777778        fRc2, iRc = self._sudoExecuteSync(asArgs);
    778779        if fRc2 is False:
    779780            if iRc == 3010: # ERROR_SUCCESS_REBOOT_REQUIRED
    780                 reporter.log('Note: Installer required a reboot to complete installation');
    781                 # Optional, don't fail.
     781                reporter.error('Installer required a reboot to complete installation (ERROR_SUCCESS_REBOOT_REQUIRED)');
    782782            else:
    783                 fRc = False;
     783                reporter.error('Installer failed, exit code: %s' % (iRc,));
     784            fRc = False;
     785
    784786        sLogFile = os.path.join(tempfile.gettempdir(), 'VirtualBox', 'VBoxInstallLog.txt');
    785         if      sLogFile is not None \
    786             and os.path.isfile(sLogFile):
     787        if os.path.isfile(sLogFile):
    787788            reporter.addLogFile(sLogFile, 'log/installer', "Verbose MSI installation log file");
    788789        self._waitForTestManagerConnectivity(30);
     
    910911            if fRc2 is False:
    911912                if iRc == 3010: # ERROR_SUCCESS_REBOOT_REQUIRED
    912                     reporter.log('Note: Uninstaller required a reboot to complete uninstallation');
    913                     reporter.addLogFile(sLogFile, 'log/uninstaller_reboot', \
     913                    reporter.error('Uninstaller required a reboot to complete uninstallation');
     914                    reporter.addLogFile(sLogFile, 'log/uninstaller_reboot',
    914915                                        "Verbose MSI uninstallation log file (reboot required)");
    915                     # Optional, don't fail.
    916916                else:
    917                     fRc = False;
     917                    reporter.error('Uninstaller failed, exit code: %s' % (iRc,));
     918                fRc = False;
    918919
    919920        self._waitForTestManagerConnectivity(30);
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