[ostree] tests: Small tweaks to pull corruption test



commit 0a9f2460162b6b3e9fcf4e3b53c440a6cb73cfc9
Author: Colin Walters <walters verbum org>
Date:   Sun Jan 19 11:48:27 2014 -0500

    tests: Small tweaks to pull corruption test
    
    This one is failing here, I suspect it's the generic pull race
    condition, but these fixes should make it slightly more reliable.

 tests/pull-test.sh            |    2 ++
 tests/test-pull-corruption.sh |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/pull-test.sh b/tests/pull-test.sh
index 5a96b08..82e7004 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 394a9e8..b042a0c 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!"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]