Never fail on process.terminate() since the process is supposed to have ended.

This commit is contained in:
Pedro Algarvio 2012-11-07 13:58:44 +00:00
parent 8e9fd09eeb
commit b4f2ad2884

View File

@ -553,9 +553,8 @@ class ShellCase(TestCase):
try:
process.terminate()
except OSError, err:
if err.errno != 3:
# No such process
raise err
# process already terminated
pass
return out.splitlines(), err.splitlines()
process = subprocess.Popen(
@ -566,9 +565,8 @@ class ShellCase(TestCase):
try:
process.terminate()
except OSError, err:
if err.errno != 3:
# No such process
raise err
# process already terminated
pass
return data[0].splitlines()
def run_salt(self, arg_str):