mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Fix hanging test
This commit is contained in:
parent
0d47d91006
commit
8663f32962
2 changed files with 2 additions and 4 deletions
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue