mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Never fail on process.terminate()
since the process is supposed to have ended.
This commit is contained in:
parent
8e9fd09eeb
commit
b4f2ad2884
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user