diff --git a/tests/pull-test.sh b/tests/pull-test.sh index 5a96b087..82e70042 100755 --- a/tests/pull-test.sh +++ b/tests/pull-test.sh @@ -17,6 +17,8 @@ # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. +set -e + cd ${test_tmpdir} mkdir repo ${CMD_PREFIX} ostree --repo=repo init diff --git a/tests/test-pull-corruption.sh b/tests/test-pull-corruption.sh index 394a9e81..b042a0c0 100755 --- a/tests/test-pull-corruption.sh +++ b/tests/test-pull-corruption.sh @@ -39,7 +39,8 @@ do_corrupt_pull_test() { fi rm -rf ${repopath} cp -a ${repopath}.orig ${repopath} - if ${CMD_PREFIX} ostree --repo=repo pull origin main && ${CMD_PREFIX} ostree --repo=repo fsck; then + ${CMD_PREFIX} ostree --repo=repo pull origin main + if ${CMD_PREFIX} ostree --repo=repo fsck; then echo "ok pull with correct data worked" else assert_not_reached "pull with correct data failed!"