tests/libtest.sh: always nuke repo and files

This allows users to easily re-initialize the test repo.

Closes: #1170
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2017-09-28 18:56:17 +00:00 committed by Atomic Bot
parent a7f04a14b5
commit e4a90caeb9
1 changed files with 2 additions and 0 deletions

View File

@ -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`