From: Jonathan Lebon Date: Thu, 28 Sep 2017 18:56:17 +0000 (+0000) Subject: tests/libtest.sh: always nuke repo and files X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~31^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e4a90caeb9d210344e537e2a9b8016dc0e01e15a;p=ostree.git tests/libtest.sh: always nuke repo and files This allows users to easily re-initialize the test repo. Closes: #1170 Approved by: cgwalters --- diff --git a/tests/libtest.sh b/tests/libtest.sh index 7ebe4449..6993629d 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`