aboutsummaryrefslogtreecommitdiff
path: root/tests/user-envs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/user-envs.sh')
-rw-r--r--tests/user-envs.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/user-envs.sh b/tests/user-envs.sh
index b1ba0ccc1..614c30ceb 100644
--- a/tests/user-envs.sh
+++ b/tests/user-envs.sh
@@ -1,7 +1,6 @@
source common.sh
-profiles="$NIX_STATE_DIR"/profiles
-rm -f $profiles/*
+clearProfiles
# Query installed: should be empty.
test "$($nixenv -p $profiles/test -q '*' | wc -l)" -eq 0