Commit graph

19 commits

Author SHA1 Message Date
twangboy
c2bb925bc6 Fix checking retcodes with runas on Windows 2025-03-06 13:45:16 -07:00
twangboy
b128203e9c Pass lastexitcode through to retcode 2025-03-06 13:45:16 -07:00
Twangboy
60a9edf235 Final fix for test_script failures 2025-01-27 14:51:37 -07:00
Twangboy
3f686c2e89 Clear the environment in the test 2025-01-27 14:51:37 -07:00
Twangboy
630f979214 Display Windows Environment Variables 2025-01-27 14:51:37 -07:00
Twangboy
46ce2f9e2d Show powershell version 2025-01-27 14:51:37 -07:00
Twangboy
02e110abc7 Use actual shell in test 2025-01-27 14:51:37 -07:00
twangboy
f22c6cabc0 Try setting PSModulePath in cmd.script 2025-01-15 16:15:41 -07:00
twangboy
a633493f4c Fix pre-commit 2025-01-15 16:15:41 -07:00
twangboy
4eca31c2f1 Clear PSModulePath environment variable 2025-01-15 16:15:41 -07:00
Shane Lee
580ad437fd Fix some tests 2024-05-14 21:15:16 +01:00
Shane Lee
dccf230a01 Make redirect_true default to True 2024-05-14 21:15:16 +01:00
Shane Lee
45c56b0033 Fix issues with the cmd module on Windows
stderr is no longer piped to stdout by default for cmd.run
Scripts are called using the -File paramter for powershell.exe
stderr is cleared if it contains CLIXML (only for encoded commands)
cmd.powershell now accepts lists as commands
Makes sure returned JSON data is valid before trying to load it
Strips whitespace from the stdout in win_runas
2024-05-14 21:15:16 +01:00
Pedro Algarvio
03ad4c6337 Update code to be Py3.7+ to reduce merge forward conflicts 2024-02-29 10:16:58 +00:00
Megan Wilhite
114bbdb361 Parameterize the bundled test for cmdmod runas tests 2022-09-14 14:07:05 -06:00
Megan Wilhite
f89c866162 fix pre-commit 2022-09-14 14:07:05 -06:00
Megan Wilhite
46ac0767fb Fix runas when using the onedir bundled packages 2022-09-14 14:07:05 -06:00
Pedro Algarvio
4d49013247 Update to isort 5.10.1
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-01 12:49:16 -06:00
twangboy
2175f8f0e2 Use pytest skips 2021-03-01 08:19:14 -05:00