Skip to contentSkip to conversation

network/traceroute01: make it compatible with Busybox

PATCH New Kory Maincent 2 participants 3 messages Nov 12, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 network/traceroute01: make it compatible with Busybox

Busybox has not "-T" parameter, return TCONF in that case.

---
 testcases/network/traceroute/traceroute01.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
testcases/network/traceroute/traceroute01.sh +5 -1
index 821853f0e..5b4a6d5a2 100755
@@ -56,7 +56,11 @@ test1()
 test2()
 {
 	tst_res TINFO "run traceroute with TCP SYN"
-	run_trace -T
+	if traceroute -T 2>&1 | grep -q "invalid option"; then
+		tst_res TCONF "Wrong version of traceroute, traceroute from busybox can not use TCP SYN"
+	else
+		run_trace -T
+	fi
 }
 
 tst_run
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/1 network/traceroute01: make it compatible with Busybox

Hi Petr,

Quoted 6 lines · On Thu, 12 Nov 2020 18:41:34 +0100 Petr Vorel <[email protected]> wrote:

Hi Kory,

Quoted 1 line

Busybox has not "-T" parameter, return TCONF in that case.

Thanks, merged with slightly updated message.
+ followup patch:
https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/

Ok thanks.

Regards,

Quoted 3 lines

Kind regards,
Petr

Signature · 3 lines
K?ry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com