Whamcloud - gitweb
LU-9603 test: Fix test-framework.sh 38/27438/3
authorSonia <sonia.sharma@intel.com>
Mon, 5 Jun 2017 22:34:00 +0000 (15:34 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 7 Jun 2017 20:32:14 +0000 (20:32 +0000)
commitc7d924c0459f9f192e19f364808c20ff0c7320ed
treefd8047b1e21f44fd19173dc5c96d1573e16dcbe5
parentbb7e551cb5e95113906616daa3a7775392d5da62
LU-9603 test: Fix  test-framework.sh

In test-frameowrk.sh, h2nettype(), h2o2ib() and h2tcp()
uses if [[ -v NETTYPE ]] where -v option is recognized
only in bash version 4.2 and above.

This patch replaces if [[ -v NETTYPE ]] with
if [[ -n "$NETTYPE" ]].

Test-Parameters: trivial testlist=conf-sanity, sanity, sanity-sec
Change-Id: Ife584f27c7a4caf6f405b701e85d389804ed33ca
Signed-off-by: Sonia Sharma <sonia.sharma@intel.com>
Reviewed-on: https://review.whamcloud.com/27438
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
lustre/tests/test-framework.sh