]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: skip the test on systems without NUMA support
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 2 Jul 2019 07:52:45 +0000 (09:52 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 5 Aug 2019 13:05:32 +0000 (15:05 +0200)
test/TEST-36-NUMAPOLICY/testsuite.sh

index daed8fcc1ccc530461b67e117d0e53f140ee34fa..4b715d305a7d19487e3e0cd1dafc90951964aab2 100755 (executable)
@@ -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