Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tsaupe:branches:Base:System:dracut-openqa-v059
dracut
TEST-20-NFS-adapt-for-openQA.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File TEST-20-NFS-adapt-for-openQA.patch of Package dracut
From e37375e78b02217626f913bbee4fab2a9a098024 Mon Sep 17 00:00:00 2001 From: Robert Richardson <robert.richardson@suse.com> Date: Wed, 11 May 2022 12:32:50 +0200 Subject: [PATCH] create test 20 patch --- test/TEST-20-NFS/server-init.sh | 10 +++++----- test/TEST-20-NFS/test.sh | 16 +++++++++------- test/TEST-20-NFS/wait-if-server.sh | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/test/TEST-20-NFS/server-init.sh b/test/TEST-20-NFS/server-init.sh index 3ddb7333..ad6c5505 100755 --- a/test/TEST-20-NFS/server-init.sh +++ b/test/TEST-20-NFS/server-init.sh @@ -48,14 +48,14 @@ linkup() { wait_for_if_link "$1" 2> /dev/null && ip link set "$1" up 2> /dev/null && wait_for_if_up "$1" 2> /dev/null } -wait_for_if_link enx525400123456 +wait_for_if_link eth0 ip addr add 127.0.0.1/8 dev lo ip link set lo up -ip addr add 192.168.50.1/24 dev enx525400123456 -ip addr add 192.168.50.2/24 dev enx525400123456 -ip addr add 192.168.50.3/24 dev enx525400123456 -linkup enx525400123456 +ip addr add 192.168.50.1/24 dev eth0 +ip addr add 192.168.50.2/24 dev eth0 +ip addr add 192.168.50.3/24 dev eth0 +linkup eth0 : > /dev/watchdog modprobe af_packet diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh index 0be60a80..f954e99e 100755 --- a/test/TEST-20-NFS/test.sh +++ b/test/TEST-20-NFS/test.sh @@ -13,6 +13,8 @@ TEST_DESCRIPTION="root filesystem on NFS with $USE_NETWORK" KVERSION=${KVERSION-$(uname -r)} +export basedir=/usr/lib/dracut + # Uncomment this to debug failures DEBUGFAIL="rd.debug loglevel=7" #DEBUGFAIL="rd.shell rd.break rd.debug loglevel=7 " @@ -34,7 +36,7 @@ run_server() { -net nic,macaddr=52:54:00:12:34:56,model=e1000 \ -serial "${SERIAL:-"file:$TESTDIR/server.log"}" \ -watchdog i6300esb -watchdog-action poweroff \ - -append "panic=1 oops=panic softlockup_panic=1 root=LABEL=dracut rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \ + -append "nompath panic=1 oops=panic softlockup_panic=1 root=LABEL=dracut rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \ -initrd "$TESTDIR"/initramfs.server \ -pidfile "$TESTDIR"/server.pid -daemonize || return 1 chmod 644 "$TESTDIR"/server.pid || return 1 @@ -45,7 +47,7 @@ run_server() { if ! [[ $SERIAL ]]; then while ! grep -q Serving "$TESTDIR"/server.log; do echo "Waiting for the server to startup" - sleep 1 + sleep 4 done else echo Sleeping 10 seconds to give the server a head start @@ -79,7 +81,7 @@ client_test() { -net nic,macaddr="$mac",model=e1000 \ -net socket,connect=127.0.0.1:12320 \ -watchdog i6300esb -watchdog-action poweroff \ - -append "panic=1 oops=panic softlockup_panic=1 systemd.crash_reboot rd.shell=0 $cmdline $DEBUGFAIL rd.retry=10 quiet ro console=ttyS0,115200n81 selinux=0" \ + -append "nompath panic=1 oops=panic softlockup_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 @@ -175,7 +177,7 @@ test_nfsv3() { 52:54:00:12:34:05 "root=dhcp" 192.168.50.1 wsize=4096 || return 1 client_test "NFSv3 Bridge Customized root=dhcp DHCP path,options" \ - 52:54:00:12:34:05 "root=dhcp bridge=foobr0:enp0s1" 192.168.50.1 wsize=4096 || return 1 + 52:54:00:12:34:05 "root=dhcp bridge=foobr0:eth0" 192.168.50.1 wsize=4096 || return 1 client_test "NFSv3 root=dhcp DHCP IP:path,options" \ 52:54:00:12:34:06 "root=dhcp" 192.168.50.2 wsize=4096 || return 1 @@ -402,7 +404,7 @@ test_setup() { # Make client's dracut image "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \ - -o "plymouth dash ${OMIT_NETWORK}" \ + -o "plymouth bash ${OMIT_NETWORK}" \ -a "debug watchdog ${USE_NETWORK}" \ --no-hostonly-cmdline -N \ -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1 @@ -418,7 +420,7 @@ test_setup() { ) # Make server's dracut image "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \ - -m "dash udev-rules base rootfs-block fs-lib debug kernel-modules watchdog qemu network network-legacy" \ + -m "bash udev-rules base rootfs-block fs-lib debug kernel-modules watchdog qemu network network-legacy" \ -d "af_packet piix ide-gd_mod ata_piix ext3 sd_mod e1000 i6300esb" \ --no-hostonly-cmdline -N \ -f "$TESTDIR"/initramfs.server "$KVERSION" || return 1 @@ -434,4 +436,4 @@ test_cleanup() { } # shellcheck disable=SC1090 -. "$testdir"/test-functions +. "$basedir"/test/test-functions \ No newline at end of file diff --git a/test/TEST-20-NFS/wait-if-server.sh b/test/TEST-20-NFS/wait-if-server.sh index 8ae21f8a..bd96fe78 100644 --- a/test/TEST-20-NFS/wait-if-server.sh +++ b/test/TEST-20-NFS/wait-if-server.sh @@ -1,3 +1,3 @@ #!/bin/sh . /lib/net-lib.sh -wait_for_if_link enx525400123456 +wait_for_if_link eth0 -- 2.37.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor