Whamcloud - gitweb
LU-6186 tests: avoid errors in using >&- bash close syntax 57/13857/4
authorBruno Faccini <bruno.faccini@intel.com>
Tue, 24 Feb 2015 16:59:26 +0000 (17:59 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 22 Jul 2015 20:28:18 +0000 (20:28 +0000)
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 <bruno.faccini@intel.com>
Change-Id: Iac3e54ef69f0c5c241b87a9e307e059974a4caf3
Reviewed-on: http://review.whamcloud.com/13857
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh

index b17cb91..3f9d37b 100755 (executable)
@@ -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"