mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 21:10:36 +00:00
12 lines
377 B
Text
12 lines
377 B
Text
|
local result = process.spawn("ls", {
|
||
|
"-a",
|
||
|
})
|
||
|
|
||
|
assert(result.ok, "Failed to spawn child process")
|
||
|
|
||
|
assert(result.stderr == "", "Stderr was not empty")
|
||
|
assert(result.stdout ~= "", "Stdout was empty")
|
||
|
|
||
|
assert(string.find(result.stdout, "Cargo.toml") ~= nil, "Missing Cargo.toml in output")
|
||
|
assert(string.find(result.stdout, ".gitignore") ~= nil, "Missing .gitignore in output")
|