Fix hanging test

This commit is contained in:
twangboy 2024-10-18 14:58:07 -06:00 committed by Daniel Wozniak
parent 0d47d91006
commit 8663f32962
2 changed files with 2 additions and 4 deletions

View file

@ -209,7 +209,7 @@ def runas(cmdLine, username, password=None, cwd=None):
int(user_token), int(user_token),
logonflags=1, logonflags=1,
applicationname=None, applicationname=None,
commandline=f'cmd /c "{cmdLine}"', commandline=cmdLine,
currentdirectory=cwd, currentdirectory=cwd,
creationflags=creationflags, creationflags=creationflags,
startupinfo=startup_info, startupinfo=startup_info,
@ -310,7 +310,7 @@ def runas_unpriv(cmd, username, password, cwd=None):
domain=domain, domain=domain,
password=password, password=password,
logonflags=salt.platform.win.LOGON_WITH_PROFILE, logonflags=salt.platform.win.LOGON_WITH_PROFILE,
commandline=f'cmd /c "{cmd}"', commandline=cmd,
startupinfo=startup_info, startupinfo=startup_info,
currentdirectory=cwd, currentdirectory=cwd,
) )

View file

@ -4,8 +4,6 @@ Test the win_runas util
import pytest import pytest
import salt.modules.win_useradd as win_user
import salt.utils.win_functions as win_functions
import salt.utils.win_runas as win_runas import salt.utils.win_runas as win_runas
pytestmark = [ pytestmark = [