~ruther/guix-local

c8855b991880897b2658dc90164e29c96e2aeb3a — Ludovic Courtès 10 years ago 47b3124
tests: Use the canonical current directory name.

* tests/guix-environment-container.sh (current_dir): New variable.  Use
  it when grepping "mounts".
1 files changed, 2 insertions(+), 1 deletions(-)

M tests/guix-environment-container.sh
M tests/guix-environment-container.sh => tests/guix-environment-container.sh +2 -1
@@ 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