From: Harald Hoyer Date: Tue, 4 May 2021 10:58:34 +0000 (+0200) Subject: test(NFS): let it run in an Arch container X-Git-Tag: 054~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82e780af25e920796f7ff0de9f0893b1ecb6a274;p=thirdparty%2Fdracut.git test(NFS): let it run in an Arch container `dhclient` on Arch does not understand the `--timeout` parameter. `/etc/virc` does not need to be installed in tests. This is a debugging leftover. --- diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh index 5a46f3d58..0be16cebe 100755 --- a/test/TEST-20-NFS/test.sh +++ b/test/TEST-20-NFS/test.sh @@ -70,12 +70,16 @@ client_test() { declare -i disk_index=0 qemu_add_drive_args disk_index disk_args "$TESTDIR"/marker.img marker + if dhclient --help 2>&1 | grep -q -F -- '--timeout' 2> /dev/null; then + cmdline="$cmdline rd.net.timeout.dhcp=3" + fi + "$testdir"/run-qemu \ "${disk_args[@]}" \ -net nic,macaddr="$mac",model=e1000 \ -net socket,connect=127.0.0.1:12320 \ -watchdog i6300esb -watchdog-action poweroff \ - -append "rd.net.timeout.dhcp=3 panic=1 systemd.crash_reboot rd.shell=0 $cmdline $DEBUGFAIL rd.retry=10 quiet ro console=ttyS0,115200n81 selinux=0" \ + -append "panic=1 systemd.crash_reboot rd.shell=0 $cmdline $DEBUGFAIL rd.retry=10 quiet ro console=ttyS0,115200n81 selinux=0" \ -initrd "$TESTDIR"/initramfs.testing # shellcheck disable=SC2181 @@ -319,7 +323,7 @@ test_setup() { ) inst_multiple sh shutdown poweroff stty cat ps ln ip dd \ - mount dmesg mkdir cp ping grep setsid ls vi /etc/virc less cat sync + mount dmesg mkdir cp ping grep setsid ls vi less cat sync for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do [ -f ${_terminfodir}/l/linux ] && break done