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 committed 2015-04-06 14:33:16 -04:00
1 parent f2b2d7c3f2
commit 1e501422e2
1 file changed
+4 -3
+4 -3
View File
@@ -39,9 +39,10 @@ maxtries=`expr $maxtries \* 2`
for ((i = 0; i < $maxtries; i=i+1)) for ((i = 0; i < $maxtries; i=i+1))
do do
if ${CMD_PREFIX} ostree --repo=repo pull origin main; then if ${CMD_PREFIX} ostree --repo=repo pull origin main 2>err.log; then
break; break
fi fi
assert_file_has_content err.log 'error:.*Download incomplete'
done done
if ${CMD_PREFIX} ostree --repo=repo fsck; then if ${CMD_PREFIX} ostree --repo=repo fsck; then
echo "ok, pull succeeded!" echo "ok, pull succeeded!"