X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=tests%2Fdata_plane%2Fvpp_lite_topo%2Ftest_driver%2Fresolver_failover.sh;h=ea3a21243d674215a221459fe88d6e6607e6f09c;hb=bf231ba795387064e7c4f1781240619429a4ef29;hp=3f07a7e970e774de1e8bcd3b9745b9d00b9279e3;hpb=1df1d674eaace35d52973786403eb1dbe3c0d5eb;p=one.git diff --git a/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh b/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh index 3f07a7e..ea3a212 100644 --- a/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh +++ b/tests/data_plane/vpp_lite_topo/test_driver/resolver_failover.sh @@ -30,27 +30,17 @@ function test_resolver_failover test_result=1 - if [ "$3" == "wait" ] ; then - read -p "press any key to continue .." -n1 - fi + maybe_pause ip netns exec vppns1 "${1}" -w 20 -c 1 "${2}" rc=$? # test done - if [ "$3" == "wait" ] ; then - read -p "press any key to continue .." -n1 - fi + maybe_pause basic_two_odls_clean kill $mr_id - if [ $rc -ne 0 ] ; then - echo "Test failed: No ICMP response received within specified timeout limit!" - else - echo "Test passed." - test_result=0 - fi - + print_status $rc "No ICMP response!" exit $test_result }