mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
Shell: Use a subshell instead of explicitly calling a shell binary in a test
This commit fixes a FIXME in a test, as we have subshells now.
This commit is contained in:
parent
0b57cdff82
commit
519aa2048a
1 changed files with 1 additions and 3 deletions
|
@ -5,9 +5,7 @@
|
|||
# created.
|
||||
rm -f sigpipe.sh.out
|
||||
|
||||
# FIXME: It'd be nice if there was a way to create a subshell that makes
|
||||
# fewer assumptions about cwd and the build directory name.
|
||||
Build/Meta/Lagom/shell -c 'echo foo && echo bar && echo baz > sigpipe.sh.out' | head -n 1 > /dev/null
|
||||
{ echo foo && echo bar && echo baz > sigpipe.sh.out } | head -n 1 > /dev/null
|
||||
|
||||
# Failing commands don't make the test fail, just an explicit `exit 1` does.
|
||||
# So the test only fails if sigpipe.sh.out exists (since then `exit 1` runs),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue