mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix exit status tests on osx
This commit is contained in:
parent
c53c046edf
commit
6d07cb4af7
1 changed files with 3 additions and 0 deletions
|
@ -820,6 +820,9 @@ class TestDaemon(TestProgram):
|
|||
# Process exited between when process_iter was invoked and
|
||||
# when we tried to invoke this instance's cmdline() func.
|
||||
continue
|
||||
except psutils.AccessDenied:
|
||||
# We might get access denied if not running as root
|
||||
continue
|
||||
if any((cmdline == proc_cmdline[n:n + cmd_len])
|
||||
for n in range(len(proc_cmdline) - cmd_len + 1)):
|
||||
ret.append(proc)
|
||||
|
|
Loading…
Add table
Reference in a new issue