summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Theune <ct@flyingcircus.io>2015-05-20 17:29:52 +0200
committerChristian Theune <ct@flyingcircus.io>2015-05-20 17:29:52 +0200
commit12a888894bc528fbfa9d4c1ef2dbeb5909550894 (patch)
tree0012ded6e603f51098301bebb40c6b59ba7a1628 /tests
parentea39c98d419a816029299b99f70455798e66f6b7 (diff)
Mis-read Eelko's request to not make this an option: now, let's not make
it an option. :)
Diffstat (limited to 'tests')
-rw-r--r--tests/user-envs.sh15
1 files changed, 3 insertions, 12 deletions
diff --git a/tests/user-envs.sh b/tests/user-envs.sh
index 6b290e501..5e4fcb7bc 100644
--- a/tests/user-envs.sh
+++ b/tests/user-envs.sh
@@ -99,25 +99,16 @@ if nix-env -q '*' | grep -q bar; then false; fi
nix-env --list-generations
test "$(nix-env --list-generations | wc -l)" -eq 7
-# Doing the same operation twice results in the same generation, but creates an
-# additional one. At this point we just brought back foo.
+# Doing the same operation twice results in the same generation, which triggers
+# "lazy" behaviour and does not create a new symlink.
nix-env -i foo
+nix-env -i foo
# Count generations.
nix-env --list-generations
test "$(nix-env --list-generations | wc -l)" -eq 8
-# Now, doing that again but passing the --lazy-generations flag will not
-# create a new generation.
-
-nix-env -i foo --lazy-generation
-
-# Count generations.
-nix-env --list-generations
-test "$(nix-env --list-generations | wc -l)" -eq 8
-
-
# Switch to a specified generation.
nix-env --switch-generation 7
[ "$(nix-store -q --resolve $profiles/test)" = "$oldGen" ]