From d462f6dc65255931a2ba2b432568ec962f783f50 Mon Sep 17 00:00:00 2001 From: David Dillow Date: Sat, 6 Jun 2009 01:13:47 -0400 Subject: [PATCH] NFS test: re-add the fix for the terminal When debugging, this is still needed as we won't be redirecting out output to /dev/null or a file. However, we need to guard against not having a terminal. --- test/TEST-20-NFS/test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh index e120f646..580c4dfa 100755 --- a/test/TEST-20-NFS/test.sh +++ b/test/TEST-20-NFS/test.sh @@ -16,6 +16,9 @@ run_server() { -initrd initramfs.server -pidfile server.pid -daemonize || return 1 sudo chmod 644 server.pid || return 1 + # Cleanup the terminal if we have one + tty -s && stty sane + echo Sleeping 10 seconds to give the server a head start sleep 10 }