teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0103-tests-allow-passing-additional-arguments-to-nspawn-v.patch

ff6046
From 164ead52f895785e0461ef205c5be317b400b0ff Mon Sep 17 00:00:00 2001
ff6046
From: Evgeny Vereshchagin <evvers@ya.ru>
ff6046
Date: Thu, 5 Jul 2018 16:30:52 +0000
ff6046
Subject: [PATCH] tests: allow passing additional arguments to nspawn via
ff6046
 NSPAWN_ARGUMENTS
ff6046
ff6046
(cherry picked from commit 57916ea352b85153ecbed803d52861ca8b933dd3)
ff6046
---
ff6046
 test/test-functions | 2 +-
ff6046
 1 file changed, 1 insertion(+), 1 deletion(-)
ff6046
ff6046
diff --git a/test/test-functions b/test/test-functions
ff6046
index 76eef8aa4d..8164858c2a 100644
ff6046
--- a/test/test-functions
ff6046
+++ b/test/test-functions
ff6046
@@ -190,7 +190,7 @@ $KERNEL_APPEND \
ff6046
 run_nspawn() {
ff6046
     [[ -d /run/systemd/system ]] || return 1
ff6046
 
ff6046
-    local _nspawn_cmd="$BUILD_DIR/systemd-nspawn --register=no --kill-signal=SIGKILL --directory=$TESTDIR/nspawn-root $PATH_TO_INIT $KERNEL_APPEND"
ff6046
+    local _nspawn_cmd="$BUILD_DIR/systemd-nspawn $NSPAWN_ARGUMENTS --register=no --kill-signal=SIGKILL --directory=$TESTDIR/nspawn-root $PATH_TO_INIT $KERNEL_APPEND"
ff6046
     if [[ "$NSPAWN_TIMEOUT" != "infinity" ]]; then
ff6046
         _nspawn_cmd="timeout --foreground $NSPAWN_TIMEOUT $_nspawn_cmd"
ff6046
     fi