diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py index e005414fc..b6152e726 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