From 68e6eb752f0bbc6e400403a8be4ed671938af075 Mon Sep 17 00:00:00 2001 From: Bruno Faccini Date: Tue, 24 Feb 2015 17:59:26 +0100 Subject: [PATCH] LU-6186 tests: avoid errors in using >&- bash close syntax Seems that recent EL7 bash version include changes in handling the ">&-" redirection/close syntax, which cause "Bad file descriptor" error. Use >/dev/null to avoid this. Signed-off-by: Bruno Faccini Change-Id: Iac3e54ef69f0c5c241b87a9e307e059974a4caf3 Reviewed-on: http://review.whamcloud.com/13857 Tested-by: Jenkins Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Jian Yu Tested-by: Jian Yu Reviewed-by: Oleg Drokin --- lustre/tests/sanity-hsm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index b17cb91..3f9d37b 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -181,7 +181,7 @@ copytool_monitor_setup() { # Slightly racy, but just making a best-effort to catch obvious # problems. sleep 1 - ps -p $HSMTOOL_MONITOR_PDSH >&- || + ps -p $HSMTOOL_MONITOR_PDSH > /dev/null || error "Failed to start copytool monitor on $agent" else do_node $agent "$cmd" -- 1.8.3.1