Blame 0072-test-server-init.sh-redirect-stdin-out-err-to-dev-co.patch

Harald Hoyer 08211a
From 4dda0095a1aabb86486f1e4c1b9a8b32250cc960 Mon Sep 17 00:00:00 2001
Harald Hoyer 08211a
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 08211a
Date: Wed, 11 Jul 2012 08:40:45 +0200
Harald Hoyer 08211a
Subject: [PATCH] test/*/server-init.sh: redirect stdin,out,err to
Harald Hoyer 08211a
 /dev/console
Harald Hoyer 08211a
Harald Hoyer 08211a
---
Harald Hoyer 08211a
 test/TEST-20-NFS/server-init.sh      |    2 +-
Harald Hoyer 08211a
 test/TEST-30-ISCSI/server-init.sh    |    2 ++
Harald Hoyer 08211a
 test/TEST-40-NBD/server-init.sh      |    2 ++
Harald Hoyer 08211a
 test/TEST-50-MULTINIC/server-init.sh |    2 +-
Harald Hoyer 08211a
 4 files changed, 6 insertions(+), 2 deletions(-)
Harald Hoyer 08211a
Harald Hoyer 08211a
diff --git a/test/TEST-20-NFS/server-init.sh b/test/TEST-20-NFS/server-init.sh
Harald Hoyer 08211a
index c3c0238..58fdeee 100755
Harald Hoyer 08211a
--- a/test/TEST-20-NFS/server-init.sh
Harald Hoyer 08211a
+++ b/test/TEST-20-NFS/server-init.sh
Harald Hoyer 08211a
@@ -1,5 +1,5 @@
Harald Hoyer 08211a
 #!/bin/sh
Harald Hoyer 08211a
-exec >/dev/console 2>&1
Harald Hoyer 08211a
+exec </dev/console >/dev/console 2>&1
Harald Hoyer 08211a
 set -x
Harald Hoyer 08211a
 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
Harald Hoyer 08211a
 export TERM=linux
Harald Hoyer 08211a
diff --git a/test/TEST-30-ISCSI/server-init.sh b/test/TEST-30-ISCSI/server-init.sh
Harald Hoyer 08211a
index 6f24b60..091f4ee 100755
Harald Hoyer 08211a
--- a/test/TEST-30-ISCSI/server-init.sh
Harald Hoyer 08211a
+++ b/test/TEST-30-ISCSI/server-init.sh
Harald Hoyer 08211a
@@ -1,4 +1,6 @@
Harald Hoyer 08211a
 #!/bin/sh
Harald Hoyer 08211a
+exec </dev/console >/dev/console 2>&1
Harald Hoyer 08211a
+set -x
Harald Hoyer 08211a
 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
Harald Hoyer 08211a
 export TERM=linux
Harald Hoyer 08211a
 export PS1='nfstest-server:\w\$ '
Harald Hoyer 08211a
diff --git a/test/TEST-40-NBD/server-init.sh b/test/TEST-40-NBD/server-init.sh
Harald Hoyer 08211a
index e8f899c..8d2dd6d 100755
Harald Hoyer 08211a
--- a/test/TEST-40-NBD/server-init.sh
Harald Hoyer 08211a
+++ b/test/TEST-40-NBD/server-init.sh
Harald Hoyer 08211a
@@ -1,4 +1,6 @@
Harald Hoyer 08211a
 #!/bin/sh
Harald Hoyer 08211a
+exec </dev/console >/dev/console 2>&1
Harald Hoyer 08211a
+set -x
Harald Hoyer 08211a
 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
Harald Hoyer 08211a
 export TERM=linux
Harald Hoyer 08211a
 export PS1='nbdtest-server:\w\$ '
Harald Hoyer 08211a
diff --git a/test/TEST-50-MULTINIC/server-init.sh b/test/TEST-50-MULTINIC/server-init.sh
Harald Hoyer 08211a
index 01470e1..43d7f40 100755
Harald Hoyer 08211a
--- a/test/TEST-50-MULTINIC/server-init.sh
Harald Hoyer 08211a
+++ b/test/TEST-50-MULTINIC/server-init.sh
Harald Hoyer 08211a
@@ -1,5 +1,5 @@
Harald Hoyer 08211a
 #!/bin/sh
Harald Hoyer 08211a
-exec >/dev/console 2>&1
Harald Hoyer 08211a
+exec </dev/console >/dev/console 2>&1
Harald Hoyer 08211a
 set -x
Harald Hoyer 08211a
 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
Harald Hoyer 08211a
 export TERM=linux