diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-06-14 18:30:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 18:30:35 +0200 |
commit | ff905cb796d255638aad3589c0c8ed8bca013059 (patch) | |
tree | 966ed84c1798b0508450c81888264560ac0edab3 /tests | |
parent | 61a3e1f2e2a368af122b24e929abe05d0d43266f (diff) | |
parent | 0101ce0d9630ee62b2c96800dbcd42fba7c0bf6e (diff) |
Merge pull request #4803 from ShamrockLee/nix-channel-list-generations
Add `nix-channel --list-generations`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nix-channel.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/nix-channel.sh b/tests/nix-channel.sh index dbb3114f1..b5d935004 100644 --- a/tests/nix-channel.sh +++ b/tests/nix-channel.sh @@ -8,6 +8,7 @@ rm -f $TEST_HOME/.nix-channels $TEST_HOME/.nix-profile nix-channel --add http://foo/bar xyzzy nix-channel --list | grepQuiet http://foo/bar nix-channel --remove xyzzy +[[ $(nix-channel --list-generations | wc -l) == 1 ]] [ -e $TEST_HOME/.nix-channels ] [ "$(cat $TEST_HOME/.nix-channels)" = '' ] @@ -38,6 +39,7 @@ ln -s dependencies.nix $TEST_ROOT/nixexprs/default.nix # Test the update action. nix-channel --add file://$TEST_ROOT/foo nix-channel --update +[[ $(nix-channel --list-generations | wc -l) == 2 ]] # Do a query. nix-env -qa \* --meta --xml --out-path > $TEST_ROOT/meta.xml |