From a3c17cfc73c8fcd467f6701e40b3658d7bc71cea Mon Sep 17 00:00:00 2001 From: regnat Date: Thu, 14 Oct 2021 15:43:22 +0200 Subject: [PATCH] Harden the user-envs-migration test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure that an absent `.nix-profile` at the begining doesn’t crash it --- tests/user-envs-migration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/user-envs-migration.sh b/tests/user-envs-migration.sh index ddfd12f58..467c28fbb 100644 --- a/tests/user-envs-migration.sh +++ b/tests/user-envs-migration.sh @@ -13,7 +13,7 @@ unset NIX_REMOTE clearStore clearProfiles -rm -r ~/.nix-profile +rm -rf ~/.nix-profile # Fill the environment using the older Nix PATH_WITH_NEW_NIX="$PATH"