selftests/unit/test_utils_process.py: fix broken test logic on sudo tests
The sudo related test are currently broken in the following aspects:
1) it doesn't require TRUE_CMD
2) the monkey patching of find_command() produces and adverse effect,
and makes the binary we look for ("sudo") become "true"
3) the expected results reflect the wrong sudo binary
Let's fix those aspects, making sure the process.py library looks for
sudo only, and that it prepends that (the found sudo binary) to the
generated command.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录