summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/vpp_lite_topo/config.sh
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2016-09-16 15:11:01 +0200
committerFilip Tehlar <ftehlar@cisco.com>2016-10-24 15:59:06 +0200
commit5089c8126fe1d2c389ebc2e4b579612d6df15a69 (patch)
tree8666ad41a572a02ce39af3507beabfe23f3558ad /tests/data_plane/vpp_lite_topo/config.sh
parent1db8c38a6fa7fc692fe18bbd47eb2f87ec6b143b (diff)
Add source/dest tests
Change-Id: Idb3ec8dc48f16d4321701e405d8e76492cd7e9de Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/config.sh')
-rw-r--r--tests/data_plane/vpp_lite_topo/config.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/data_plane/vpp_lite_topo/config.sh b/tests/data_plane/vpp_lite_topo/config.sh
index a4709f0..2c58007 100644
--- a/tests/data_plane/vpp_lite_topo/config.sh
+++ b/tests/data_plane/vpp_lite_topo/config.sh
@@ -135,6 +135,17 @@ function assert_rc_ok
# assert_rc_ok rc cleanup_fcn error_msg
if [ $1 -ne 0 ] ; then
echo $3
+ maybe_pause
+ $2
+ exit $test_result
+ fi
+}
+
+function assert_rc_not_ok
+{
+ if [ $1 -eq 0 ] ; then
+ echo $3
+ maybe_pause
$2
exit $test_result
fi