From: Harald Hoyer Date: Thu, 24 May 2012 14:00:33 +0000 (+0200) Subject: test/TEST-01-BASIC: only test systemd-nspawn, if the test system uses systemd X-Git-Tag: v183~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b17d413b11bfbdb4442c87b1db25b37ed5162ac;p=systemd test/TEST-01-BASIC: only test systemd-nspawn, if the test system uses systemd --- diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh index ca8a5ee8..22517a83 100755 --- a/test/TEST-01-BASIC/test.sh +++ b/test/TEST-01-BASIC/test.sh @@ -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 }