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:
parent
a7f04a14b5
commit
e4a90caeb9
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Reference in New Issue