From a97cc62bcb768384d02d3a61dcff68fa5846881c Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Tue, 7 Mar 2017 14:41:36 -0700 Subject: [PATCH] test/iscsi: skip calsoft tests if unavailable Change-Id: I07f4ad418983a4b9693f7e5f1392a0b1721007d8 Signed-off-by: Seth Howell --- test/iscsi_tgt/calsoft/calsoft.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/iscsi_tgt/calsoft/calsoft.sh b/test/iscsi_tgt/calsoft/calsoft.sh index a36122340..d43fcb523 100755 --- a/test/iscsi_tgt/calsoft/calsoft.sh +++ b/test/iscsi_tgt/calsoft/calsoft.sh @@ -3,6 +3,11 @@ testdir=$(readlink -f $(dirname $0)) rootdir=$testdir/../../.. source $rootdir/scripts/autotest_common.sh +if [ ! -d /usr/local/calsoft ]; then + echo "skipping calsoft tests" + exit 0 +fi + if [ -z "$TARGET_IP" ]; then echo "TARGET_IP not defined in environment" exit 1