From 5a23cf04fa2767a688c47bed03fd4194286ee1a3 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Fri, 25 Apr 2025 13:42:15 +0200 Subject: [PATCH] Attempt to fix process exec test on windows --- tests/process/exec/stdin.luau | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/process/exec/stdin.luau b/tests/process/exec/stdin.luau index e779dcd..7c8ee79 100644 --- a/tests/process/exec/stdin.luau +++ b/tests/process/exec/stdin.luau @@ -2,10 +2,8 @@ local process = require("@lune/process") local expected = "Hello from child process!" --- When passing stdin to powershell on windows we must "accept" using the double newline - local result = if process.os == "windows" - then process.exec("powershell", { "echo" }, { stdio = { stdin = expected .. "\n\n" } }) + then process.exec("powershell", { "-Command", "$input" }, { stdio = { stdin = expected } }) else process.exec("xargs", { "echo" }, { stdio = { stdin = expected } }) local resultStdout = result.stdout