* Better cleanup after tests.
This commit is contained in:
parent
13df3915ef
commit
9485ec31ea
1 changed files with 8 additions and 5 deletions
|
@ -58,6 +58,11 @@ readLink() {
|
||||||
ls -l "$1" | sed 's/.*->\ //'
|
ls -l "$1" | sed 's/.*->\ //'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearProfiles() {
|
||||||
|
profiles="$NIX_STATE_DIR"/profiles
|
||||||
|
rm -f $profiles/*
|
||||||
|
}
|
||||||
|
|
||||||
clearStore() {
|
clearStore() {
|
||||||
echo "clearing store..."
|
echo "clearing store..."
|
||||||
chmod -R +w "$NIX_STORE_DIR"
|
chmod -R +w "$NIX_STORE_DIR"
|
||||||
|
@ -66,11 +71,9 @@ clearStore() {
|
||||||
rm -rf "$NIX_DB_DIR"
|
rm -rf "$NIX_DB_DIR"
|
||||||
mkdir "$NIX_DB_DIR"
|
mkdir "$NIX_DB_DIR"
|
||||||
$nixstore --init
|
$nixstore --init
|
||||||
}
|
clearProfiles
|
||||||
|
rm -f "$NIX_STATE_DIR"/gcroots/auto/*
|
||||||
clearProfiles() {
|
rm -f "$NIX_STATE_DIR"/gcroots/ref
|
||||||
profiles="$NIX_STATE_DIR"/profiles
|
|
||||||
rm -f $profiles/*
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clearManifests() {
|
clearManifests() {
|
||||||
|
|
Loading…
Reference in a new issue