mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -05:00
tests: Use the canonical current directory name.
* tests/guix-environment-container.sh (current_dir): New variable. Use it when grepping "mounts".
This commit is contained in:
parent
47b3124a8e
commit
c8855b9918
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue