From 7a76821826a23b55643c5b7e30b898248901d7db Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 28 Sep 2017 18:56:17 +0000 Subject: [PATCH] tests/libtest.sh: always nuke repo and files This allows users to easily re-initialize the test repo. --- tests/libtest.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/libtest.sh b/tests/libtest.sh index 7ebe4449ce..6993629d6d 100755 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -141,6 +141,7 @@ setup_test_repository () { fi cd ${test_tmpdir} + rm -rf repo if test -n "${mode}"; then ostree_repo_init repo --mode=${mode} else @@ -152,6 +153,7 @@ setup_test_repository () { cd ${test_tmpdir} local oldumask="$(umask)" umask 022 + rm -rf files mkdir files cd files ot_files=`pwd`