From 331af9ea96b83c8fad74417033d0211fcaae8546 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Thu, 28 Dec 2017 16:47:46 -0700 Subject: [PATCH] test/iscsi: add default IP addresses The iscsi_tgt test scripts can assume that the default case is testing on a local machine using the kernel TCP stack; add a fallback TARGET_IP and INITIATOR_IP to make it easier to run the individual iSCSI tests outside of the autotest.sh framework. Change-Id: I07c58201691dc5f053d5f67787768dfee4110f73 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/393214 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- test/iscsi_tgt/common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/iscsi_tgt/common.sh b/test/iscsi_tgt/common.sh index 7cdde82da..37c42e3ee 100644 --- a/test/iscsi_tgt/common.sh +++ b/test/iscsi_tgt/common.sh @@ -1,11 +1,11 @@ if [ -z $TARGET_IP ]; then - echo "TARGET_IP not defined in environment" - exit 1 + TARGET_IP=127.0.0.1 + echo "TARGET_IP not defined in environment; defaulting to $TARGET_IP" fi if [ -z $INITIATOR_IP ]; then - echo "INITIATOR_IP not defined in environment" - exit 1 + INITIATOR_IP=127.0.0.1 + echo "INITIATOR_IP not defined in environment; defaulting to $INITIATOR_IP" fi if [ -z "$ISCSI_APP" ]; then