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 committed 2020-10-07 15:14:16 +02:00
1 parent 6860c63760
commit 4ed21bba4d
1 file changed
+1 -1
+1 -1
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