From: Frantisek Sumsal Date: Tue, 2 Jul 2019 07:52:45 +0000 (+0200) Subject: test: skip the test on systems without NUMA support X-Git-Tag: v243-rc2~63^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b030847163e9bd63d3dd6eec6ac7f336411faba6;p=thirdparty%2Fsystemd.git test: skip the test on systems without NUMA support --- diff --git a/test/TEST-36-NUMAPOLICY/testsuite.sh b/test/TEST-36-NUMAPOLICY/testsuite.sh index daed8fcc1cc..4b715d305a7 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