VirtualBox

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


Ignore:
Timestamp:
Nov 20, 2018 4:43:18 PM (6 years ago)
Author:
vboxsync
Message:

testdriver/vboxinstaller.py: Solaris experiment - restart svc.configd after uninstall to prevent it getting sluggish. [adjusted]

File:
1 edited

Legend:

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

    r75623 r75625  
    468468        if   sHost == 'darwin':     fRc = self._uninstallVBoxOnDarwin();
    469469        elif sHost == 'linux':      fRc = self._uninstallVBoxOnLinux();
    470         elif sHost == 'solaris':    fRc = self._uninstallVBoxOnSolaris();
     470        elif sHost == 'solaris':    fRc = self._uninstallVBoxOnSolaris(True);
    471471        elif sHost == 'win':        fRc = self._uninstallVBoxOnWindows(True);
    472472        else:
     
    703703
    704704        # Uninstall first (ignore result).
    705         self._uninstallVBoxOnSolaris();
     705        self._uninstallVBoxOnSolaris(False);
    706706
    707707        # Install the new one.
     
    709709        return fRc;
    710710
    711     def _uninstallVBoxOnSolaris(self):
     711    def _uninstallVBoxOnSolaris(self, fRestartSvcConfigD):
    712712        """ Uninstalls VBox on Solaris."""
    713713        reporter.flushall();
     
    723723        # The restarter will then start a new instance of it.
    724724        #
    725         time.sleep(1); # Give it a chance to flush pkgrm stuff.
    726         self._sudoExecuteSync(['pkill', '-HUP', 'svc.configd']);
    727         time.sleep(5); # Spare a few cpu cycles it to shutdown and restart.
     725        if fRestartSvcConfigD:
     726            time.sleep(1); # Give it a chance to flush pkgrm stuff.
     727            self._sudoExecuteSync(['pkill', '-HUP', 'svc.configd']);
     728            time.sleep(5); # Spare a few cpu cycles it to shutdown and restart.
    728729
    729730        return fRc;
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