diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Shell/Tests/heredocs.sh | 4 | ||||
-rw-r--r-- | Userland/Shell/Tests/loop.sh | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Userland/Shell/Tests/heredocs.sh b/Userland/Shell/Tests/heredocs.sh index c1c4c6b376..128c495562 100644 --- a/Userland/Shell/Tests/heredocs.sh +++ b/Userland/Shell/Tests/heredocs.sh @@ -1,6 +1,8 @@ #!/bin/sh source $(dirname "$0")/test-commons.inc +# go to a writable directory +cd /tmp # Simple usage, single doc echo <<-test > sh.doc.test @@ -71,4 +73,6 @@ test test2 rm -f sh.doc.test +# return to original directory +cd - pass diff --git a/Userland/Shell/Tests/loop.sh b/Userland/Shell/Tests/loop.sh index e040280ceb..f5a5602dbe 100644 --- a/Userland/Shell/Tests/loop.sh +++ b/Userland/Shell/Tests/loop.sh @@ -1,7 +1,8 @@ #!/bin/sh source $(dirname "$0")/test-commons.inc - +# go to a writable directory +cd /tmp singlecommand_ok=yes multicommand_ok=yes inlineexec_ok=yes @@ -95,5 +96,6 @@ if not test \ fail "Something failed :(" } - +# return to original directory +cd - echo PASS |