From: Simon McVittie Date: Mon, 30 Jul 2018 15:51:01 +0000 (+0100) Subject: Skip test-pull-repeated during CI X-Git-Tag: archive/raspbian/2023.7-3+rpi1^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=42a467cd45a867859cd5d46654b1c93fa17a7133;p=ostree.git Skip test-pull-repeated during CI This test is expected to fail a small proportion of the time. During the build of ostree 2018.7-1 in Debian, it seems we were unlucky on s390x. Non-deterministic tests are also problematic for autopkgtest, where they can gate migration of our dependencies like GLib, so skip this test unless the caller has opted-in to non-deterministic tests. It would be appropriate to enable this test in environments where failures can easily be retried and are not disruptive to other packages. Signed-off-by: Simon McVittie Gbp-Pq: Topic debian Gbp-Pq: Name Skip-test-pull-repeated-during-CI.patch --- diff --git a/tests/test-pull-repeated.sh b/tests/test-pull-repeated.sh index 7f724c95..d10799b0 100755 --- a/tests/test-pull-repeated.sh +++ b/tests/test-pull-repeated.sh @@ -21,6 +21,10 @@ set -euo pipefail . $(dirname $0)/libtest.sh +if [ "${OSTREE_TEST_ALLOW_RANDOM:-}" != 1 ]; then + skip "Non-deterministic test will fail if we are unlucky" +fi + COMMIT_SIGN="" if has_gpgme; then COMMIT_SIGN="--gpg-homedir=${TEST_GPG_KEYHOME} --gpg-sign=${TEST_GPG_KEYID_1}"