chiark / gitweb /
test/TEST-01-BASIC: only test systemd-nspawn, if the test system uses systemd
[elogind.git] / test / TEST-01-BASIC / test.sh
index ca8a5ee87202bc057c72684c8f5ec17680f4f52b..22517a831efb4ab738b11e297c7d999df9744226 100755 (executable)
@@ -43,7 +43,9 @@ run_nspawn() {
 
 test_run() {
     run_qemu || return 1
-    run_nspawn || return 1
+    if [[ -d /sys/fs/cgroup/systemd ]]
+        run_nspawn || return 1
+    fi
     return 0
 }