VirtualBox

Ignore:
Timestamp:
Aug 19, 2021 4:01:27 PM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: tdAudioTest.py: Log stuff in killHstProcessByName() to find out what's going on. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r90753 r90754  
    280280            procPs = subprocess.Popen(['ps', 'ax'], stdout=subprocess.PIPE);
    281281            out, err = procPs.communicate();
    282             reporter.log2('PS stderr:');
    283             for sLine in err.decode("utf-8").splitlines():
    284                 reporter.log2(sLine);
    285             reporter.log2('PS stdout:');
    286             for sLine in out.decode("utf-8").splitlines():
    287                 reporter.log2(sLine);
    288                 if sProcName in sLine:
    289                     pid = int(sLine.split(None, 1)[0]);
    290                     reporter.log('Killing PID %d' % (pid,));
    291                     os.kill(pid, signal.SIGKILL); # pylint: disable=no-member
     282            if err:
     283                reporter.log2('PS stderr:');
     284                for sLine in err.decode("utf-8").splitlines():
     285                    reporter.log2(sLine);
     286            if out:
     287                reporter.log2('PS stdout:');
     288                for sLine in out.decode("utf-8").splitlines():
     289                    reporter.log2(sLine);
     290                    if sProcName in sLine:
     291                        pid = int(sLine.split(None, 1)[0]);
     292                        reporter.log('Killing PID %d' % (pid,));
     293                        os.kill(pid, signal.SIGKILL); # pylint: disable=no-member
    292294
    293295    def killHstVkat(self):
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