From 1e501422e2e5586022c19531b4856da66a479548 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 6 Apr 2015 11:10:56 -0400 Subject: [PATCH] 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 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test-pull-resume.sh b/tests/test-pull-resume.sh index fcca8393..e0732433 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!"