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.
This commit is contained in:
Colin Walters 2015-04-06 11:10:56 -04:00
parent f2b2d7c3f2
commit 1e501422e2
1 changed files with 4 additions and 3 deletions

View File

@ -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;
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!"