mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix integration.modules.test_cmdmod.CMDModuleTest.test_cmd_run_whoami
This commit is contained in:
parent
d0dcb00e77
commit
84124de00a
1 changed files with 2 additions and 0 deletions
|
@ -540,6 +540,8 @@ class CMDModuleTest(ModuleCase):
|
|||
user = RUNTIME_VARS.RUNTIME_CONFIGS["master"]["user"]
|
||||
else:
|
||||
user = salt.utils.user.get_specific_user()
|
||||
if user.startswith("sudo_"):
|
||||
user = user.replace("sudo_", "")
|
||||
cmd = self.run_function("cmd.run", ["whoami"])
|
||||
self.assertEqual(user.lower(), cmd.lower())
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue