diff --git a/debian/patches/debian/test-sysroot-Skip-on-s390x-by-default.patch b/debian/patches/debian/test-sysroot-Skip-on-s390x-by-default.patch new file mode 100644 index 00000000..6dcef390 --- /dev/null +++ b/debian/patches/debian/test-sysroot-Skip-on-s390x-by-default.patch @@ -0,0 +1,30 @@ +From: Simon McVittie +Date: Tue, 6 Dec 2022 10:59:33 +0000 +Subject: test-sysroot: Skip on s390x by default + +This test regularly fails on the buildds, but I cannot reproduce the +failure on a porterbox. + +Bug: https://github.com/ostreedev/ostree/issues/2527 +Bug-Debian: https://bugs.debian.org/1025532 +Forwarded: not-needed +--- + tests/test-sysroot.js | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/tests/test-sysroot.js b/tests/test-sysroot.js +index d4f67ef..0855b3d 100755 +--- a/tests/test-sysroot.js ++++ b/tests/test-sysroot.js +@@ -38,6 +38,11 @@ function libtestExec(shellCode) { + proc.wait_check(null); + } + ++if (GLib.getenv('DEB_HOST_ARCH') === 's390x' && !GLib.getenv('DEB_ALLOW_FLAKY_TESTS')) { ++ print('1..0 # SKIP https://bugs.debian.org/1025532'); ++ imports.system.exit(0); ++} ++ + print('1..1') + + libtestExec('setup_os_repository archive syslinux'); diff --git a/debian/patches/series b/debian/patches/series index 82f25e2b..895738c4 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ -debian/Skip-test-pull-repeated-during-CI.patch configure-use-pkg-config-with-newer-gpgme-and-gpg-error.patch +debian/Skip-test-pull-repeated-during-CI.patch +debian/test-sysroot-Skip-on-s390x-by-default.patch diff --git a/debian/tests/control b/debian/tests/control index 28691e70..f619ebc9 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,4 +1,9 @@ -Tests: flaky +Tests: flaky-concurrency +Restrictions: flaky +Depends: gnome-desktop-testing, ostree-tests + +Tests: flaky-sysroot +Architecture: s390x Restrictions: flaky Depends: gnome-desktop-testing, ostree-tests diff --git a/debian/tests/flaky b/debian/tests/flaky-concurrency old mode 100644 new mode 100755 similarity index 100% rename from debian/tests/flaky rename to debian/tests/flaky-concurrency diff --git a/debian/tests/flaky-sysroot b/debian/tests/flaky-sysroot new file mode 100644 index 00000000..8865f9ec --- /dev/null +++ b/debian/tests/flaky-sysroot @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e +exec 2>&1 + +unset ftp_proxy +unset http_proxy +unset https_proxy +unset no_proxy +export DEB_ALLOW_FLAKY_TESTS=1 + +exec gnome-desktop-testing-runner libostree/test-sysroot.js.test diff --git a/debian/tests/gnome-desktop-testing b/debian/tests/gnome-desktop-testing index e4346cac..b041ae0d 100755 --- a/debian/tests/gnome-desktop-testing +++ b/debian/tests/gnome-desktop-testing @@ -11,7 +11,9 @@ unset http_proxy unset https_proxy unset no_proxy -tests="$(gnome-desktop-testing-runner -l libostree | while read -r t; do +namespace=libostree/ + +tests="$(gnome-desktop-testing-runner -l "$namespace" | while read -r t; do t="${t%% *}" case "$t" in @@ -20,11 +22,24 @@ tests="$(gnome-desktop-testing-runner -l libostree | while read -r t; do # https://github.com/ostreedev/ostree/issues/1620 continue ;; + + (libostree/test-sysroot.js.test) + # https://bugs.debian.org/1025532 + # https://github.com/ostreedev/ostree/issues/2527 + if [ "${DEB_HOST_ARCH-}" = s390x ] || [ "$(uname -m)" = s390x ]; then + continue + fi + ;; esac echo "$t" done)" +if [ -z "$tests" ]; then + echo "Error: no installed-tests found matching $namespace" >&2 + exit 1 +fi + # Deliberately word-splitting # shellcheck disable=SC2046 exec gnome-desktop-testing-runner $tests