VirtualBox

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


Ignore:
Timestamp:
May 9, 2020 8:51:43 AM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddBasic1.py: Do bit of diagnosis on failure for the runlevel and facility tests.

File:
1 edited

Legend:

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

    r84190 r84224  
    317317            # Check the additionsVersion attribute. It must not be empty.
    318318            reporter.testStart('IGuest::additionsVersion');
    319             fRc = self.testIGuest_additionsVersion(oGuest);
     319            fRc = self.testIGuest_additionsVersion(oGuest) and fRc;
    320320            reporter.testDone();
    321321
    322322            # Check Guest Additions facilities
    323323            reporter.testStart('IGuest::getFacilityStatus');
    324             fRc = self.testIGuest_getFacilityStatus(oTestVm, oGuest);
     324            fRc = self.testIGuest_getFacilityStatus(oTestVm, oGuest) and fRc;
    325325            reporter.testDone();
     326
     327            # Do a bit of diagnosis on error.
     328            if not fRc:
     329                if oTestVm.isLinux():
     330                    oTxsSession.syncExec('/bin/ps', ('/bin/ps', '-a', '-u', '-x'), fIgnoreErrors = True);
     331                    oTxsSession.syncExec('bin/dmesg', ('/bin/dmesg'), fIgnoreErrors = True);
    326332
    327333        return (fRc, oTxsSession);
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