about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-02-17T17·47+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-02-17T17·47+0000
commit7a3e715980c3fcd84b6d12f54a18a920ebba208d (patch)
treedd936690c8fa0e8397db3253adc1d8c302ce5072 /tests
parent58fc420b365b8f8d6faaa332ab3ba4e97ad584e0 (diff)
* Fix for NIX-31: "nix-env -i foo" installing all derivations named
  foo.  Now it will only install the one with the highest version
  number.

Diffstat (limited to 'tests')
-rw-r--r--tests/user-envs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/user-envs.sh b/tests/user-envs.sh
index bd14f51080b3..59565cff0dc8 100644
--- a/tests/user-envs.sh
+++ b/tests/user-envs.sh
@@ -82,7 +82,7 @@ test "$($nixenv -p $profiles/test -q | wc -l)" -eq 0
 
 # Installing "foo" should only install the newest foo.
 $nixenv -p $profiles/test -f ./user-envs.nix -i foo
-test "$($nixenv -p $profiles/test -q | grep foo- | wc)" -eq 1
+test "$($nixenv -p $profiles/test -q | grep foo- | wc -l)" -eq 1
 $nixenv -p $profiles/test -q | grep -q foo-2.0
 
 # On the other hand, this should install both (and should fail due to
@@ -93,6 +93,6 @@ if $nixenv -p $profiles/test -f ./user-envs.nix -i foo-1.0 foo-2.0; then false;
 # Installing "*" should install one foo and one bar.
 $nixenv -p $profiles/test -f ./user-envs.nix -e '*'
 $nixenv -p $profiles/test -f ./user-envs.nix -i '*'
-test "$($nixenv -p $profiles/test -q | wc)" -eq 2
+test "$($nixenv -p $profiles/test -q | wc -l)" -eq 2
 $nixenv -p $profiles/test -q | grep -q foo-2.0
 $nixenv -p $profiles/test -q | grep -q bar-0.1.1