summaryrefslogtreecommitdiff
path: root/Userland/Shell/Tests/builtin-redir.sh
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2021-01-24 21:42:30 -0700
committerAndreas Kling <kling@serenityos.org>2021-02-28 18:19:37 +0100
commit8fc862f71045d43688406599063aaf1efc3ef70e (patch)
tree12ce7e74775f01ef36c7691b13a7dd9971db6ff0 /Userland/Shell/Tests/builtin-redir.sh
parente787738c24754ce591b4226715fcc2049e37334f (diff)
downloadserenity-8fc862f71045d43688406599063aaf1efc3ef70e.zip
Userland: Install shell tests on Serenity
Also make them runnable anywhere. Previously they required $PWD to be the directory containing test-commons.inc, and for $PWD to be writable.
Diffstat (limited to 'Userland/Shell/Tests/builtin-redir.sh')
-rw-r--r--Userland/Shell/Tests/builtin-redir.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Shell/Tests/builtin-redir.sh b/Userland/Shell/Tests/builtin-redir.sh
index fba2b5f985..ff4254c311 100644
--- a/Userland/Shell/Tests/builtin-redir.sh
+++ b/Userland/Shell/Tests/builtin-redir.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-source test-commons.inc
+source $(dirname "$0")/test-commons.inc
rm -rf shell-test
mkdir -p shell-test