test-sysroot: Skip on s390x by default
authorSimon McVittie <smcv@debian.org>
Tue, 6 Dec 2022 10:59:33 +0000 (10:59 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 26 Mar 2024 16:15:22 +0000 (16:15 +0000)
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

Gbp-Pq: Topic debian
Gbp-Pq: Name test-sysroot-Skip-on-s390x-by-default.patch

tests/test-sysroot.js

index d4f67ef4b3b25feb631989e0cfa58ef9054f42cd..0855b3d71fda134fb122f2753e2159f485172f62 100755 (executable)
@@ -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');