From 68f3b56b183ca12b64b7fcf0f31dffd62adfcf55 Mon Sep 17 00:00:00 2001 From: Eli Kogan-Wang Date: Wed, 29 Jan 2025 21:47:45 +0100 Subject: [PATCH] tests: update nix profile remove command to reflect correct package removal count --- tests/functional/nix-profile.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional/nix-profile.sh b/tests/functional/nix-profile.sh index 4324e4140..26a3c213d 100755 --- a/tests/functional/nix-profile.sh +++ b/tests/functional/nix-profile.sh @@ -62,10 +62,11 @@ grep '"priority":10' $TEST_HOME/.nix-profile/manifest.json nix profile history nix profile history | grep "packages.$system.default: ∅ -> 1.0" nix profile diff-closures | grep 'env-manifest.nix: ε → ∅' +nix profile remove --regex ".*foo-0.1" 2>&1 | grep 'removed 1 packages' # Test XDG Base Directories support export NIX_CONFIG="use-xdg-base-directories = true" -nix profile remove foo-0.1 flake1 2>&1 | grep 'removed 2 packages' +nix profile remove flake1 2>&1 | grep 'removed 1 packages' nix profile install $flake1Dir [[ $($TEST_HOME/.local/state/nix/profile/bin/hello) = "Hello World" ]] unset NIX_CONFIG