|
Harald Hoyer |
9d5d75 |
From 9288d21b9fd992cc7a32fbf79ad4f80b070e2277 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
9d5d75 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
9d5d75 |
Date: Tue, 14 Aug 2018 16:37:01 +0200
|
|
Harald Hoyer |
9d5d75 |
Subject: [PATCH] TEST-50-MULTINIC: removed bogus qemu compat server call
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
---
|
|
Harald Hoyer |
9d5d75 |
test/TEST-50-MULTINIC/test.sh | 46 ++++++++++++-------------------------------
|
|
Harald Hoyer |
9d5d75 |
1 file changed, 13 insertions(+), 33 deletions(-)
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
|
|
Harald Hoyer |
9d5d75 |
index 0a4d29c2..495a66f2 100755
|
|
Harald Hoyer |
9d5d75 |
--- a/test/TEST-50-MULTINIC/test.sh
|
|
Harald Hoyer |
9d5d75 |
+++ b/test/TEST-50-MULTINIC/test.sh
|
|
Harald Hoyer |
9d5d75 |
@@ -13,39 +13,19 @@ run_server() {
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
fsck -a "$TESTDIR"/server.ext3 || return 1
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
- if $testdir/run-qemu --help | grep -qF -m1 'netdev hubport,id=str,hubid=n[,netdev=nd]' && echo OK; then
|
|
Harald Hoyer |
9d5d75 |
- $testdir/run-qemu \
|
|
Harald Hoyer |
9d5d75 |
- -drive format=raw,index=0,media=disk,file="$TESTDIR"/server.ext3 \
|
|
Harald Hoyer |
9d5d75 |
- -m 512M -smp 2 \
|
|
Harald Hoyer |
9d5d75 |
- -display none \
|
|
Harald Hoyer |
9d5d75 |
- -net socket,listen=127.0.0.1:12350 \
|
|
Harald Hoyer |
9d5d75 |
- -net nic,macaddr=52:54:01:12:34:56,model=e1000 \
|
|
Harald Hoyer |
9d5d75 |
- ${SERIAL:+-serial "$SERIAL"} \
|
|
Harald Hoyer |
9d5d75 |
- ${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
|
Harald Hoyer |
9d5d75 |
- -watchdog i6300esb -watchdog-action poweroff \
|
|
Harald Hoyer |
9d5d75 |
- -no-reboot \
|
|
Harald Hoyer |
9d5d75 |
- -append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
Harald Hoyer |
9d5d75 |
- -initrd "$TESTDIR"/initramfs.server \
|
|
Harald Hoyer |
9d5d75 |
- -pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
|
Harald Hoyer |
9d5d75 |
- else
|
|
Harald Hoyer |
9d5d75 |
- $testdir/run-qemu \
|
|
Harald Hoyer |
9d5d75 |
- -drive format=raw,index=0,media=disk,file="$TESTDIR"/server.ext3 \
|
|
Harald Hoyer |
9d5d75 |
- -m 512M -smp 2 \
|
|
Harald Hoyer |
9d5d75 |
- -display none \
|
|
Harald Hoyer |
9d5d75 |
- -net socket,vlan=0,connect=127.0.0.1:12350 \
|
|
Harald Hoyer |
9d5d75 |
- -net nic,vlan=0,macaddr=52:54:00:12:34:$mac1,model=e1000 \
|
|
Harald Hoyer |
9d5d75 |
- -net nic,vlan=0,macaddr=52:54:00:12:34:$mac2,model=e1000 \
|
|
Harald Hoyer |
9d5d75 |
- -net nic,vlan=0,macaddr=52:54:00:12:34:$mac3,model=e1000 \
|
|
Harald Hoyer |
9d5d75 |
- -net nic,vlan=1,macaddr=52:54:00:12:34:98,model=e1000 \
|
|
Harald Hoyer |
9d5d75 |
- -net nic,vlan=2,macaddr=52:54:00:12:34:99,model=e1000 \
|
|
Harald Hoyer |
9d5d75 |
- ${SERIAL:+-serial "$SERIAL"} \
|
|
Harald Hoyer |
9d5d75 |
- ${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
|
Harald Hoyer |
9d5d75 |
- -watchdog i6300esb -watchdog-action poweroff \
|
|
Harald Hoyer |
9d5d75 |
- -no-reboot \
|
|
Harald Hoyer |
9d5d75 |
- -append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
Harald Hoyer |
9d5d75 |
- -initrd "$TESTDIR"/initramfs.server \
|
|
Harald Hoyer |
9d5d75 |
- -pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
|
Harald Hoyer |
9d5d75 |
- fi
|
|
Harald Hoyer |
9d5d75 |
+ $testdir/run-qemu \
|
|
Harald Hoyer |
9d5d75 |
+ -drive format=raw,index=0,media=disk,file="$TESTDIR"/server.ext3 \
|
|
Harald Hoyer |
9d5d75 |
+ -m 512M -smp 2 \
|
|
Harald Hoyer |
9d5d75 |
+ -display none \
|
|
Harald Hoyer |
9d5d75 |
+ -net socket,listen=127.0.0.1:12350 \
|
|
Harald Hoyer |
9d5d75 |
+ -net nic,macaddr=52:54:01:12:34:56,model=e1000 \
|
|
Harald Hoyer |
9d5d75 |
+ ${SERIAL:+-serial "$SERIAL"} \
|
|
Harald Hoyer |
9d5d75 |
+ ${SERIAL:--serial file:"$TESTDIR"/server.log} \
|
|
Harald Hoyer |
9d5d75 |
+ -watchdog i6300esb -watchdog-action poweroff \
|
|
Harald Hoyer |
9d5d75 |
+ -no-reboot \
|
|
Harald Hoyer |
9d5d75 |
+ -append "panic=1 loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
Harald Hoyer |
9d5d75 |
+ -initrd "$TESTDIR"/initramfs.server \
|
|
Harald Hoyer |
9d5d75 |
+ -pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
sudo chmod 644 -- "$TESTDIR"/server.pid || return 1
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
|