Add source/dest tests
[one.git] / tests / data_plane / vpp_lite_topo / config.sh
index a4709f0..2c58007 100644 (file)
@@ -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