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 authored and Atomic Bot committed 2017-09-30 00:05:07 +00:00
1 parent a7f04a14b5
commit e4a90caeb9
1 file changed
+2
+2
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`