Replace sudo with runuser

runuser is in util-linux and does not require sudo package.

Related: https://pagure.io/freeipa/issue/8530
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes 2020-10-07 10:58:16 +02:00
parent 6860c63760
commit 4ed21bba4d

View File

@ -743,7 +743,7 @@ class TestIPACommand(IntegrationTest):
# test IFP as ipaapi
result = self.master.run_command(
['sudo', '-u', IPAAPI_USER, '--'] + cmd
['runuser', '-u', IPAAPI_USER, '--'] + cmd
)
assert uid in result.stdout_text