Skip test-sysroot.js on s390x

Mitigates: #1025532
This commit is contained in:
Simon McVittie 2022-12-06 11:08:51 +00:00
parent b1232248f8
commit 0f32888091
6 changed files with 66 additions and 3 deletions

View File

@ -0,0 +1,30 @@
From: Simon McVittie <smcv@debian.org>
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');

View File

@ -1,2 +1,3 @@
debian/Skip-test-pull-repeated-during-CI.patch
configure-use-pkg-config-with-newer-gpgme-and-gpg-error.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

View File

@ -1,4 +1,9 @@
Tests: flaky Tests: flaky-concurrency
Restrictions: flaky
Depends: gnome-desktop-testing, ostree-tests
Tests: flaky-sysroot
Architecture: s390x
Restrictions: flaky Restrictions: flaky
Depends: gnome-desktop-testing, ostree-tests Depends: gnome-desktop-testing, ostree-tests

0
debian/tests/flaky → debian/tests/flaky-concurrency vendored Normal file → Executable file
View File

12
debian/tests/flaky-sysroot vendored Normal file
View File

@ -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

View File

@ -11,7 +11,9 @@ unset http_proxy
unset https_proxy unset https_proxy
unset no_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%% *}" t="${t%% *}"
case "$t" in 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 # https://github.com/ostreedev/ostree/issues/1620
continue 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 esac
echo "$t" echo "$t"
done)" done)"
if [ -z "$tests" ]; then
echo "Error: no installed-tests found matching $namespace" >&2
exit 1
fi
# Deliberately word-splitting # Deliberately word-splitting
# shellcheck disable=SC2046 # shellcheck disable=SC2046
exec gnome-desktop-testing-runner $tests exec gnome-desktop-testing-runner $tests