From 988c51de7f5ac32452817e199de8fa13e8255c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophane=20Hufschmitt?= Date: Mon, 11 Apr 2022 10:20:37 +0200 Subject: [PATCH] tests: Make `clearStore` more resilient MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let it work if `$NIX_STORE_DIR` doesn’t exist --- tests/common.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common.sh.in b/tests/common.sh.in index 83533fd99..3d2d13af2 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -66,7 +66,7 @@ clearProfiles() { clearStore() { echo "clearing store..." - chmod -R +w "$NIX_STORE_DIR" + chmod -R +w "$NIX_STORE_DIR" || true rm -rf "$NIX_STORE_DIR" mkdir "$NIX_STORE_DIR" rm -rf "$NIX_STATE_DIR"