Skip to content

Commit b8a5222

Browse files
kmaincentpevik
authored andcommitted
network/traceroute01: make it compatible with Busybox
Busybox has not "-T" parameter, return TCONF in that case. Signed-off-by: Kory Maincent <[email protected]> [ pvorel: slightly updated message because also traceroute6 from iputils don't support -T] Reviewed-by: Petr Vorel <[email protected]>
1 parent ebd2233 commit b8a5222

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testcases/network/traceroute/traceroute01.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ test1()
5656
test2()
5757
{
5858
tst_res TINFO "run traceroute with TCP SYN"
59-
run_trace -T
59+
if traceroute -T 2>&1 | grep -q "invalid option"; then
60+
tst_res TCONF "-T flag (TCP SYN) not supported"
61+
else
62+
run_trace -T
63+
fi
6064
}
6165

6266
tst_run

0 commit comments

Comments
 (0)