From 4ed21bba4d41edea8a84924287c92d048a102d1c Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Oct 07 2020 13:14:16 +0000 Subject: 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 Reviewed-By: Alexander Bokovoy --- diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py index e005414..b6152e7 100644 --- a/ipatests/test_integration/test_commands.py +++ b/ipatests/test_integration/test_commands.py @@ -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