]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: exit early from TEST-70-TPM2 on ppc64el
authorLuca Boccassi <bluca@debian.org>
Mon, 17 Jul 2023 18:06:22 +0000 (19:06 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 17 Jul 2023 21:47:06 +0000 (22:47 +0100)
There is an underlying issue that appears only on ppc64 and fails 95%
of Ubuntu runs, so exit early until it is solved.

Closes https://github.com/systemd/systemd/issues/27716

test/units/testsuite-70.sh

index 16d6c901f711f663bbbc4e22c96ae3653dcbb661..f01642f71a04e3faa5f0b558ae4263da43bb26b8 100755 (executable)
@@ -250,6 +250,13 @@ systemd-run -p PrivateDevices=yes -p LoadCredentialEncrypted=testdata.encrypted:
 systemd-run -p PrivateDevices=yes -p SetCredentialEncrypted=testdata.encrypted:"$(cat /tmp/testdata.encrypted)" --pipe --wait systemd-creds cat testdata.encrypted | cmp - /tmp/testdata
 rm -f /tmp/testdata
 
+# There is an external issue with libcryptsetup on ppc64 that hits 95% of Ubuntu ppc64 test runs, so skip it
+machine="$(uname -m)"
+if [ "${machine}" = "ppc64le" ]; then
+    touch /testok
+    exit 0
+fi
+
 cryptenroll_wipe_and_check() {(
     set +o pipefail