[ostree] tests: Verify that the pull error was from interruption



commit 1e501422e2e5586022c19531b4856da66a479548
Author: Colin Walters <walters verbum org>
Date:   Mon Apr 6 11:10:56 2015 -0400

    tests: Verify that the pull error was from interruption
    
    While working on https://github.com/GNOME/ostree/pull/84 I wanted to
    verify that nothing else was going wrong.

 tests/test-pull-resume.sh |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-pull-resume.sh b/tests/test-pull-resume.sh
index fcca839..e073243 100755
--- a/tests/test-pull-resume.sh
+++ b/tests/test-pull-resume.sh
@@ -39,9 +39,10 @@ maxtries=`expr $maxtries \* 2`
 
 for ((i = 0; i < $maxtries; i=i+1))
 do
-if ${CMD_PREFIX} ostree --repo=repo pull origin main; then
-    break;
-fi
+  if ${CMD_PREFIX} ostree --repo=repo pull origin main 2>err.log; then
+    break
+  fi
+  assert_file_has_content err.log 'error:.*Download incomplete'
 done
 if ${CMD_PREFIX} ostree --repo=repo fsck; then
     echo "ok, pull succeeded!"


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