diff options
| author | Saikari <[email protected]> | 2026-02-01 19:28:23 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-01 19:28:23 +0300 |
| commit | c68524a15b90a0c400930c9ca9c4ba4e7911e569 (patch) | |
| tree | d2900a07aa7f6c1317e2aca84449dc977da6dae5 /tests/modules/stdin/test.lua | |
| parent | 2fbded813d6b413f3174c85cf5ca4e6ec76dda28 (diff) | |
refactor: update PowerShell stdin command format for macOS compatibility
Diffstat (limited to 'tests/modules/stdin/test.lua')
| -rw-r--r-- | tests/modules/stdin/test.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index f2609c531..44d0da2b7 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -116,6 +116,9 @@ function main(t) if pwsh ~= "" then local run_stdin = string.format("%s l --stdin", xmake) + if os.host() == "macosx" then + run_stdin = string.format('sh -c \\"%s\\"', run_stdin) + end test_shell( "pwsh_single", string.format('%s -c "echo \\"print(\'hello_pwsh\')\\" | %s"', pwsh, run_stdin), |
