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:
parent
41bfe2049d
commit
331af9ea96
@ -1,11 +1,11 @@
|
|||||||
if [ -z $TARGET_IP ]; then
|
if [ -z $TARGET_IP ]; then
|
||||||
echo "TARGET_IP not defined in environment"
|
TARGET_IP=127.0.0.1
|
||||||
exit 1
|
echo "TARGET_IP not defined in environment; defaulting to $TARGET_IP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z $INITIATOR_IP ]; then
|
if [ -z $INITIATOR_IP ]; then
|
||||||
echo "INITIATOR_IP not defined in environment"
|
INITIATOR_IP=127.0.0.1
|
||||||
exit 1
|
echo "INITIATOR_IP not defined in environment; defaulting to $INITIATOR_IP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$ISCSI_APP" ]; then
|
if [ -z "$ISCSI_APP" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user