]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/test-functions
tests: remove unnecessary /sys/fs/cgroup/systemd checking
[thirdparty/systemd.git] / test / test-functions
index fca163a979a88c16fe745698c90f10dadd264738..49bd35f688c0c5dc7b9684462b4d34bd05eb829e 100644 (file)
@@ -92,7 +92,7 @@ $KERNEL_APPEND \
 
 run_nspawn() {
     set -x
-    ../../systemd-nspawn --boot --directory=$TESTDIR/nspawn-root $ROOTLIBDIR/systemd $KERNEL_APPEND
+    ../../systemd-nspawn --register=no --boot --directory=$TESTDIR/nspawn-root $ROOTLIBDIR/systemd $KERNEL_APPEND
 }
 
 setup_basic_environment() {
@@ -1134,9 +1134,7 @@ inst_libdir_file() {
 }
 
 check_nspawn() {
-    [[ -d /sys/fs/cgroup/systemd ]] && \
-    [[ -d /run/systemd/system ]] && \
-    [[ -e /lib/systemd/systemd-machined ]]
+    [[ -d /run/systemd/system ]]
 }