summaryrefslogtreecommitdiff
path: root/Shell/Tests
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-09-13 14:01:59 +0430
committerAndreas Kling <kling@serenityos.org>2020-09-14 17:40:18 +0200
commit519aa2048ad9ca3f5d2a56906ff9feb3743bf746 (patch)
treec69c4ddd91c0410a70a1c48b65df08fcbe989f4e /Shell/Tests
parent0b57cdff82174af573fdd668d1bff36d41712b79 (diff)
downloadserenity-519aa2048ad9ca3f5d2a56906ff9feb3743bf746.zip
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.
Diffstat (limited to 'Shell/Tests')
-rw-r--r--Shell/Tests/sigpipe.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/Shell/Tests/sigpipe.sh b/Shell/Tests/sigpipe.sh
index e24fd731fb..1866b506ba 100644
--- a/Shell/Tests/sigpipe.sh
+++ b/Shell/Tests/sigpipe.sh
@@ -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),