summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2016-08-16 23:37:40 +0200
committerFilip Tehlar <ftehlar@cisco.com>2016-08-23 11:56:02 +0200
commit4543d2821b1ab69579a525d83497ff84e9084bed (patch)
treead2d08bcbafb69042be12633a852fb800c07036e /tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh
parent4cf0fc0cc463e294eab3f727d811e2a11ecadcae (diff)
Small improvements
- update function to check if odl is up - add global function (and option) to clean test sate - fix test driver script Change-Id: I80e4908d3a266ce064e5823f310f7a2302c10577 Signed-off-by: Florin Coras <fcoras@cisco.com> Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh')
-rw-r--r--tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh b/tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh
index 1dc8ae0..81fd0ff 100644
--- a/tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh
+++ b/tests/data_plane/vpp_lite_topo/test_driver/basic_multi_traffic.sh
@@ -27,7 +27,7 @@ function test_basic_multi_traffic
test_result=1
- if [ "$3" == "wait" ] ; then
+ if [ "$5" == "wait" ] ; then
read -p "press any key to continue .." -n1
fi
@@ -56,6 +56,10 @@ function test_basic_multi_traffic
ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/4o4
post_curl "update-mapping" ${ODL_CONFIG_FILE3}
+ if [ "$5" == "wait" ] ; then
+ read -p "press any key to continue .." -n1
+ fi
+
ip netns exec vppns1 "${1}" -w 15 -c 1 "${2}"
if [ $? -ne 0 ] ; then
echo "No response received!"
@@ -66,7 +70,7 @@ function test_basic_multi_traffic
ip netns exec vppns1 "${3}" -w 15 -c 1 "${4}"
rc=$?
- if [ "$3" == "wait" ] ; then
+ if [ "$5" == "wait" ] ; then
read -p "press any key to continue .." -n1
fi