diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-11-04 12:10:11 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-11-04 12:10:11 +0100 |
| commit | c8855b991880897b2658dc90164e29c96e2aeb3a (patch) | |
| tree | e8e7646053738dac1d94cdf1d47e17cfa460fbbc | |
| parent | 47b3124a8ecf3cf5826ee909776936a3107350f3 (diff) | |
tests: Use the canonical current directory name.v0.9.0
* tests/guix-environment-container.sh (current_dir): New variable. Use
it when grepping "mounts".
| -rw-r--r-- | tests/guix-environment-container.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/guix-environment-container.sh b/tests/guix-environment-container.sh index 141fd160a7d..8b6f7cd38f5 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 \ | |||
| 69 | cat "$tmpdir/mounts" | 69 | cat "$tmpdir/mounts" |
| 70 | test `wc -l < $tmpdir/mounts` -eq 3 | 70 | test `wc -l < $tmpdir/mounts` -eq 3 |
| 71 | 71 | ||
| 72 | grep -e "$PWD$" $tmpdir/mounts # current directory | 72 | current_dir="`cd $PWD; pwd -P`" |
| 73 | grep -e "$current_dir$" $tmpdir/mounts # current directory | ||
| 73 | grep $(guix build guile-bootstrap) $tmpdir/mounts | 74 | grep $(guix build guile-bootstrap) $tmpdir/mounts |
| 74 | grep -e "$NIX_STORE_DIR/.*-bash" $tmpdir/mounts # bootstrap bash | 75 | grep -e "$NIX_STORE_DIR/.*-bash" $tmpdir/mounts # bootstrap bash |
| 75 | 76 | ||
