summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-03 22:51:06 +0800
committerruki <[email protected]>2020-02-07 22:45:56 +0800
commitcf9970fddd580f8b9bb8ed25d6d9cfa67a607b69 (patch)
tree57dda8e994431a59f96f44fec83d416fb4db0db6 /tests/modules
parentccfe7ed01bd603f4435ce6463ecf267f49ddd6fe (diff)
improve to open process and support pipe
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/process/test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/process/test.lua b/tests/modules/process/test.lua
index 24846fd02..8e9e45bd8 100644
--- a/tests/modules/process/test.lua
+++ b/tests/modules/process/test.lua
@@ -7,7 +7,7 @@ function test_single_process(t)
local stdout = os.tmpfile()
local stderr = os.tmpfile()
for i = 1, 2 do
- local proc = process.open("echo -n awd", {outpath = stdout, errpath = stderr})
+ local proc = process.open("echo -n awd", {stdout = stdout, stderr = stderr})
proc:wait(inftimeout)
proc:close()
t:are_equal(io.readfile(stdout), "awd")