From: Harald Hoyer Date: Mon, 27 Jun 2016 10:05:37 +0000 (+0200) Subject: test: correct cmdline reading functions X-Git-Tag: 045~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b039b20ec257901b89ecb32fa8d4ded676c0096c;p=thirdparty%2Fdracut.git test: correct cmdline reading functions --- diff --git a/test/TEST-01-BASIC/test-init.sh b/test/TEST-01-BASIC/test-init.sh index a8b6e393a..78f124a5b 100755 --- a/test/TEST-01-BASIC/test-init.sh +++ b/test/TEST-01-BASIC/test-init.sh @@ -2,7 +2,7 @@ >/dev/watchdog getcmdline() { while read -r _line || [ -n "$_line" ]; do - printf "%s" "$line" + printf "%s" "$_line" done /dev/console 2>&1 echo "dracut-root-block-success" >/dev/sda1 diff --git a/test/TEST-02-SYSTEMD/test.sh b/test/TEST-02-SYSTEMD/test.sh index 61895618d..973627872 100755 --- a/test/TEST-02-SYSTEMD/test.sh +++ b/test/TEST-02-SYSTEMD/test.sh @@ -4,7 +4,7 @@ TEST_DESCRIPTION="root filesystem on a ext3 filesystem" KVERSION="${KVERSION-$(uname -r)}" # Uncomment this to debug failures -#DEBUGFAIL="rd.shell" +#DEBUGFAIL="rd.shell=1 rd.break" test_run() { $testdir/run-qemu \ -drive format=raw,index=0,media=disk,file=$TESTDIR/root.ext3 \ diff --git a/test/TEST-03-USR-MOUNT/test-init.sh b/test/TEST-03-USR-MOUNT/test-init.sh index 68eaff056..dc03359a5 100755 --- a/test/TEST-03-USR-MOUNT/test-init.sh +++ b/test/TEST-03-USR-MOUNT/test-init.sh @@ -2,7 +2,7 @@ >/dev/watchdog getcmdline() { while read -r _line || [ -n "$_line" ]; do - printf "%s" "$line" + printf "%s" "$_line" done /dev/watchdog getcmdline() { while read -r _line || [ -n "$_line" ]; do - printf "%s" "$line" + printf "%s" "$_line" done