VirtualBox

Changeset 86503 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 9, 2020 1:49:47 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140818
Message:

ValKit/vbox.py: VBoxSVC failure should be checked and reported. bugref:9841

Location:
trunk/src/VBox/ValidationKit/testdriver
Files:
2 edited

Legend:

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

    r86443 r86503  
    737737            return -127;
    738738        return self.uExitCode >> 8;
     739
     740    def isNormalExit(self):
     741        """
     742        Returns True if regular exit(), False if signal or still running.
     743        """
     744        if self.isRunning():
     745            return False;
     746        if sys.platform == 'win32':
     747            return False;
     748        return os.WIFEXITED(self.uExitCode);
    739749
    740750    def interrupt(self):
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r86493 r86503  
    13181318                reporter.log('VBoxSVC is no longer running...');
    13191319            if not self.oVBoxSvcProcess.isRunning():
     1320                iExit = self.oVBoxSvcProcess.getExitCode();
     1321                if iExit != 0 or not self.oVBoxSvcProcess.isNormalExit():
     1322                    reporter.error("VBoxSVC exited with status %d (%#x)" % (iExit, self.oVBoxSvcProcess.uExitCode));
    13201323                self.oVBoxSvcProcess = None;
    13211324        else:
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