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>
18 lines
400 B
Bash
18 lines
400 B
Bash
if [ -z $TARGET_IP ]; then
|
|
TARGET_IP=127.0.0.1
|
|
echo "TARGET_IP not defined in environment; defaulting to $TARGET_IP"
|
|
fi
|
|
|
|
if [ -z $INITIATOR_IP ]; then
|
|
INITIATOR_IP=127.0.0.1
|
|
echo "INITIATOR_IP not defined in environment; defaulting to $INITIATOR_IP"
|
|
fi
|
|
|
|
if [ -z "$ISCSI_APP" ]; then
|
|
ISCSI_APP=./app/iscsi_tgt/iscsi_tgt
|
|
fi
|
|
|
|
if [ -z "$ISCSI_TEST_CORE_MASK" ]; then
|
|
ISCSI_TEST_CORE_MASK=0xFFFF
|
|
fi
|