test/TEST-01-BASIC: only test systemd-nspawn, if the test system uses systemd

This commit is contained in:
Harald Hoyer 2012-05-24 16:00:33 +02:00
parent d9890f4ed4
commit 7b17d413b1

View file

@ -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
}