diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-18 16:35:35 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-18 16:35:35 +0000 |
commit | 9485ec31ea3b4ad9f2b31c350cd24f2fa6ec5484 (patch) | |
tree | 09f761df2dfc63a37ad2b8a9a254fe12b5f75c7d /tests | |
parent | 13df3915ef7b967b3889e2bf5f66ca8de1adc8b0 (diff) | |
download | guix-9485ec31ea3b4ad9f2b31c350cd24f2fa6ec5484.tar.gz |
* Better cleanup after tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common.sh.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in index 08faeea719..37dce260f5 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -58,6 +58,11 @@ readLink() { ls -l "$1" | sed 's/.*->\ //' } +clearProfiles() { + profiles="$NIX_STATE_DIR"/profiles + rm -f $profiles/* +} + clearStore() { echo "clearing store..." chmod -R +w "$NIX_STORE_DIR" @@ -66,11 +71,9 @@ clearStore() { rm -rf "$NIX_DB_DIR" mkdir "$NIX_DB_DIR" $nixstore --init -} - -clearProfiles() { - profiles="$NIX_STATE_DIR"/profiles - rm -f $profiles/* + clearProfiles + rm -f "$NIX_STATE_DIR"/gcroots/auto/* + rm -f "$NIX_STATE_DIR"/gcroots/ref } clearManifests() { |