summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2019-07-02 09:52:45 +0200
committerJan Synacek <jan.synacek@gmail.com>2020-03-11 12:32:25 +0100
commitad3e4a0f010c9497b01d89de54213af982f8afd2 (patch)
tree3a323403adfe2adc852fe722c7d3478edb203c76
parent60813b55f9b5b44b14f38bbc1b8c0d2b30e3f6c7 (diff)
downloadsystemd-ad3e4a0f010c9497b01d89de54213af982f8afd2.tar.gz
test: skip the test on systems without NUMA support
(cherry picked from commit b030847163e9bd63d3dd6eec6ac7f336411faba6) Related: #1808940
-rwxr-xr-xtest/TEST-36-NUMAPOLICY/testsuite.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/TEST-36-NUMAPOLICY/testsuite.sh b/test/TEST-36-NUMAPOLICY/testsuite.sh
index daed8fcc1c..4b715d305a 100755
--- a/test/TEST-36-NUMAPOLICY/testsuite.sh
+++ b/test/TEST-36-NUMAPOLICY/testsuite.sh
@@ -123,7 +123,18 @@ systemctlCheckNUMAProperties() {
fi
}
-checkNUMA
+if ! checkNUMA; then
+ echo >&2 "NUMA is not supported on this machine, skipping the test"
+
+ # FIXME: add some sanity checks to verify systemd behaves correctly with
+ # NUMA disabled together with NUMAPolicy= and NUMAMask=
+
+ systemd-analyze log-level info
+ echo OK > /testok
+
+ exit 0
+fi
+
writeTestUnit
# Create systemd config drop-in directory