VirtualBox

Changeset 97774 in vbox for trunk


Ignore:
Timestamp:
Dec 12, 2022 11:13:41 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154842
Message:

Validation Kit: Don't report an actual error when handling core dumps on Solaris hosts fail due to a not available / online coreadm.

File:
1 edited

Legend:

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

    r97673 r97774  
    721721            if sKindCrashDump is not None: # Enable.
    722722                sCorePath = getDirEnv('TESTBOX_PATH_SCRATCH', sAlternative = '/var/cores', fTryCreate = False);
    723                 utils.sudoProcessOutputChecked([ 'coreadm', '-e', 'global', '-e', 'global-setid', \
    724                                                  '-e', 'process', '-e', 'proc-setid', \
    725                                                  '-g', os.path.join(sCorePath, '%f.%p.core')]);
     723                (iExitCode, _, sErr) = utils.processOutputUnchecked([ 'coreadm', '-e', 'global', '-e', 'global-setid', \
     724                                                                      '-e', 'process', '-e', 'proc-setid', \
     725                                                                      '-g', os.path.join(sCorePath, '%f.%p.core')]);
    726726            else: # Disable.
    727                 utils.sudoProcessOutputChecked([ 'coreadm', \
    728                                                  '-d', 'global', '-d', 'global-setid', '-d', 'process', '-d', 'proc-setid' ]);
     727                (iExitCode, _, sErr) = utils.processOutputUnchecked([ 'coreadm', \
     728                                                                      '-d', 'global', '-d', 'global-setid', \
     729                                                                      '-d', 'process', '-d', 'proc-setid' ]);
     730            if iExitCode != 0: # Don't report an actual error, just log this.
     731                reporter.log('%s coreadm failed: %s' % ('Enabling' if sKindCrashDump else 'Disabling', sErr));
    729732
    730733        if sKindCrashDump is not None:
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