VirtualBox

Changeset 66364 in vbox


Ignore:
Timestamp:
Mar 30, 2017 2:00:57 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114307
Message:

ValidationKit: better waiting

File:
1 edited

Legend:

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

    r66360 r66364  
    838838
    839839        if self._isProcessPresent('msiexec'):
    840             time.sleep(120)     # In the hope that it goes away.
    841             cKilled = self._killProcessesByName('msiexec', 'MSI driver installation');
    842             if cKilled > 0:
    843                 time.sleep(16); # fudge.
     840            cTimes = 0;
     841            while cTimes < 6:
     842                reporter.log('found running msiexec process, waiting a bit...');
     843                time.sleep(20)  # In the hope that it goes away.
     844                if not self._isProcessPresent('msiexec'):
     845                    break;
     846                cTimes += 1;
     847            if cTimes >= 6:
     848                cKilled = self._killProcessesByName('msiexec', 'MSI driver installation');
     849                if cKilled > 0:
     850                    time.sleep(16); # fudge.
    844851
    845852        # Do the uninstalling.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette