From: Evgeny Vereshchagin Date: Thu, 5 Jul 2018 16:30:52 +0000 (+0000) Subject: tests: allow passing additional arguments to nspawn via NSPAWN_ARGUMENTS X-Git-Tag: v240~959 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57916ea352b85153ecbed803d52861ca8b933dd3;p=thirdparty%2Fsystemd.git tests: allow passing additional arguments to nspawn via NSPAWN_ARGUMENTS --- diff --git a/test/test-functions b/test/test-functions index f3263411b02..accaf927c87 100644 --- a/test/test-functions +++ b/test/test-functions @@ -190,7 +190,7 @@ $KERNEL_APPEND \ run_nspawn() { [[ -d /run/systemd/system ]] || return 1 - local _nspawn_cmd="$BUILD_DIR/systemd-nspawn --register=no --kill-signal=SIGKILL --directory=$TESTDIR/nspawn-root $PATH_TO_INIT $KERNEL_APPEND" + local _nspawn_cmd="$BUILD_DIR/systemd-nspawn $NSPAWN_ARGUMENTS --register=no --kill-signal=SIGKILL --directory=$TESTDIR/nspawn-root $PATH_TO_INIT $KERNEL_APPEND" if [[ "$NSPAWN_TIMEOUT" != "infinity" ]]; then _nspawn_cmd="timeout --foreground $NSPAWN_TIMEOUT $_nspawn_cmd" fi