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 <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/393214
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Daniel Verkamp 2017-12-28 16:47:46 -07:00 committed by Jim Harris
parent 41bfe2049d
commit 331af9ea96

View File

@ -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