From 4564473902eeba3febb232f5d448116af799cb0b Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Nov 10 2012 14:36:55 +0000 Subject: Fixed the case where host to reach is *also* the default gw, so listed twice in the output --- diff --git a/tests/p_iputils/tracepath_test.sh b/tests/p_iputils/tracepath_test.sh index 4e8704f..5964ee3 100755 --- a/tests/p_iputils/tracepath_test.sh +++ b/tests/p_iputils/tracepath_test.sh @@ -26,7 +26,12 @@ then then t_Log "${TEST} reached ${HOST}" ret_val=0 + elif [ $COUNT = 2 ] + then + t_Log "${TEST} reached ${HOST}" + ret_val=0 fi + if ([ $COUNT = 0 ] && [ $TTL = 1 ]) then t_Log "${TEST} didn't reach ${HOST} because of too many hops. This is treated as SUCCESS."