diff options
| author | Saikari <[email protected]> | 2026-02-01 16:36:56 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-01 16:36:56 +0300 |
| commit | 0e07b14891d27765bfcabf071f102f6758db6666 (patch) | |
| tree | 7639c9684da22d4807ff51f4945a1ca233befa63 /tests/modules/stdin/test.lua | |
| parent | faca264f8ea0fb695f6bc8b3a9d1411f901f054b (diff) | |
refactor: update PowerShell test commands to use sh for stdin execution
Diffstat (limited to 'tests/modules/stdin/test.lua')
| -rw-r--r-- | tests/modules/stdin/test.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index bd4bb5964..96d166591 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -100,18 +100,18 @@ function main(t) if pwsh ~= "" then test_shell( "pwsh_single", - string.format('%s -c "echo \\"print(\'hello_pwsh\')\\" | %s l --stdin"', pwsh, xmake), + string.format('%s -c "echo \\"print(\'hello_pwsh\')\\" | sh -c \\"%s l --stdin\\""', pwsh, xmake), "hello_pwsh" ) test_shell( "pwsh_calc", - string.format('%s -c "echo \\"local f = 1+1; print(f)\\" | %s l --stdin"', pwsh, xmake), + string.format('%s -c "echo \\"local f = 1+1; print(f)\\" | sh -c \\"%s l --stdin\\""', pwsh, xmake), "2" ) test_shell( "pwsh_main", string.format( - '%s -c "echo \\"function main() print(\'in_pwsh_main\') end\\" | %s l --stdin"', + '%s -c "echo \\"function main() print(\'in_pwsh_main\') end\\" | sh -c \\"%s l --stdin\\""', pwsh, xmake ), @@ -120,7 +120,7 @@ function main(t) test_shell( "pwsh_multi", string.format( - '%s -c "echo \\"print(\'pline1\')\\" \\"print(\'pline2\')\\" | %s l --stdin"', + '%s -c "echo \\"print(\'pline1\')\\" \\"print(\'pline2\')\\" | sh -c \\"%s l --stdin\\""', pwsh, xmake ), |
