Skip test-pull-repeated during CI
authorSimon McVittie <smcv@debian.org>
Mon, 30 Jul 2018 15:51:01 +0000 (16:51 +0100)
committerSimon McVittie <smcv@debian.org>
Sat, 8 Jun 2024 15:06:43 +0000 (16:06 +0100)
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 <smcv@debian.org>
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-test-pull-repeated-during-CI.patch

tests/test-pull-repeated.sh

index b3e0074207e56482f785e41dfb17eff380dcf954..0c77546ac409e05d611def6f2ef2f2bd7073c7ed 100755 (executable)
@@ -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_ostree_feature gpgme; then
     COMMIT_SIGN="--gpg-homedir=${TEST_GPG_KEYHOME} --gpg-sign=${TEST_GPG_KEYID_1}"