mirror of
https://github.com/lune-org/lune.git
synced 2025-04-19 19:34:02 +01:00
chore(tests): windows support for process stdin tests
This commit is contained in:
parent
33730e1147
commit
7dd9223157
1 changed files with 4 additions and 2 deletions
|
@ -141,8 +141,10 @@ assert(
|
||||||
|
|
||||||
-- Passing stdin strings should work
|
-- Passing stdin strings should work
|
||||||
|
|
||||||
local stdinChild = process.spawn("xargs", {
|
local isWindows = process.os == "windows"
|
||||||
"echo",
|
|
||||||
|
local stdinChild = process.spawn((((not isWindows) and "xargs") or "echo"), {
|
||||||
|
((not isWindows) and "echo") or nil,
|
||||||
}, {
|
}, {
|
||||||
stdin = echoMessage,
|
stdin = echoMessage,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue