Skip to content

Commit

Permalink
tests/libtest.sh: always nuke repo and files
Browse files Browse the repository at this point in the history
This allows users to easily re-initialize the test repo.

Closes: ostreedev#1170
Approved by: cgwalters
  • Loading branch information
jlebon authored and rh-atomic-bot committed Sep 30, 2017
1 parent a7f04a1 commit e4a90ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/libtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand Down

0 comments on commit e4a90ca

Please sign in to comment.