tests: Use the canonical current directory name.
Changes
1 files changed · +2 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| tests/guix-environment-container.sh | modified | +2 | −1 | View file |
tests/guix-environment-container.sh
View filediff --git a/tests/guix-environment-container.sh b/tests/guix-environment-container.sh
index 141fd16..8b6f7cd 100644
--- a/tests/guix-environment-container.sh
+++ b/tests/guix-environment-container.sh
@@ -69,7 +69,8 @@ guix environment --container --ad-hoc --bootstrap guile-bootstrap \
cat "$tmpdir/mounts"
test `wc -l < $tmpdir/mounts` -eq 3
-grep -e "$PWD$" $tmpdir/mounts # current directory
+current_dir="`cd $PWD; pwd -P`"
+grep -e "$current_dir$" $tmpdir/mounts # current directory
grep $(guix build guile-bootstrap) $tmpdir/mounts
grep -e "$NIX_STORE_DIR/.*-bash" $tmpdir/mounts # bootstrap bash