]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-55-OOMD: Skip on opensuse
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 May 2024 08:39:32 +0000 (10:39 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 May 2024 09:57:09 +0000 (11:57 +0200)
opensuse does not have the stress tool packaged.

test/units/testsuite-55.sh

index e803ea89c431a593f10c9702f7a59974fd9004cf..5bc0eaec75eb7a85e127cd3394a8382010af1318 100755 (executable)
@@ -6,6 +6,14 @@ set -o pipefail
 # shellcheck source=test/units/util.sh
  . "$(dirname "$0")"/util.sh
 
+. /etc/os-release
+# OpenSUSE does not have the stress tool packaged. It does have stress-ng but the stress-ng does not support
+# --vm-stride which this test uses.
+if [[ "$ID" =~ "opensuse" ]]; then
+    echo "Skipping due to missing stress package in OpenSUSE" >>/skipped
+    exit 77
+fi
+
 systemd-analyze log-level debug
 
 # Ensure that the init.scope.d drop-in is applied on boot