aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-repl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/guix-repl.sh')
-rw-r--r--tests/guix-repl.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/guix-repl.sh b/tests/guix-repl.sh
index e1c2b8241f..d4ebb5f6c6 100644
--- a/tests/guix-repl.sh
+++ b/tests/guix-repl.sh
@@ -45,6 +45,10 @@ EOF
test "`guix repl "$tmpfile"`" = "coreutils"
+# Make sure that the file can also be loaded when passed as a relative file
+# name.
+(cd "$(dirname "$tmpfile")"; test "$(guix repl "$(basename "$tmpfile")")" = "coreutils")
+
cat > "$module_dir/foo.scm"<<EOF
(define-module (foo)