test: run unittests with newlines in /proc/cmdline

This should help catch this class of errors.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-12-13 14:20:35 +01:00
parent 1506edca91
commit f4c7bf9e90
1 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,14 @@ set -e
TEST_DESCRIPTION="Run unit tests under containers"
RUN_IN_UNPRIVILEGED_CONTAINER=yes
# embed some newlines in the kernel command line to stress our test suite
KERNEL_APPEND="
frobnicate!
$KERNEL_APPEND
"
. $TEST_BASE_DIR/test-functions
check_result_nspawn() {