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.
This commit is contained in:
parent
14e1cf61d9
commit
0a9f246016
|
|
@ -17,6 +17,8 @@
|
||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
cd ${test_tmpdir}
|
cd ${test_tmpdir}
|
||||||
mkdir repo
|
mkdir repo
|
||||||
${CMD_PREFIX} ostree --repo=repo init
|
${CMD_PREFIX} ostree --repo=repo init
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ do_corrupt_pull_test() {
|
||||||
fi
|
fi
|
||||||
rm -rf ${repopath}
|
rm -rf ${repopath}
|
||||||
cp -a ${repopath}.orig ${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"
|
echo "ok pull with correct data worked"
|
||||||
else
|
else
|
||||||
assert_not_reached "pull with correct data failed!"
|
assert_not_reached "pull with correct data failed!"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue