mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
tests: don't rely on system's machined
Fixes backward/forward incompatibility errors on spawning. For example: $ sudo make run ... Failed to register machine: Cannot set property TasksMax, or unknown property. $ ../../systemd-nspawn --version systemd 228 $ systemd-nspawn --version systemd 225
This commit is contained in:
parent
8c191eecd4
commit
2c393ed761
@ -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() {
|
||||
@ -1135,8 +1135,7 @@ inst_libdir_file() {
|
||||
|
||||
check_nspawn() {
|
||||
[[ -d /sys/fs/cgroup/systemd ]] && \
|
||||
[[ -d /run/systemd/system ]] && \
|
||||
[[ -e /lib/systemd/systemd-machined ]]
|
||||
[[ -d /run/systemd/system ]]
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user