[tests] Don't fail if kill cmd says that process don't exists
In e.g. functional tests, if kill command called by
RootHelperProcess.kill() method will return error that process
with specified PID don't exists, test should not fails.
This patch adds handling of such case in this method and reraise
exception always if error code is different than 1 or
raised exception have got different error message.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/681258 /opendev. org/openstack/ neutron/ commit/ 729290357b0961e b72d7b9a540b509 8ab54e1a6d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 729290357b0961e b72d7b9a540b509 8ab54e1a6d
Author: Slawek Kaplonski <email address hidden>
Date: Tue Sep 10 15:36:39 2019 +0200
[tests] Don't fail if kill cmd says that process don't exists
In e.g. functional tests, if kill command called by rocess. kill() method will return error that process
RootHelperP
with specified PID don't exists, test should not fails.
This patch adds handling of such case in this method and reraise
exception always if error code is different than 1 or
raised exception have got different error message.
Change-Id: I92c8f74f1dd2e7 6141e1e024a2258 9e9ddc4ff57
Closes-Bug: #1843418