Skip to content

Commit 605e160

Browse files
committed
tst_net.sh: print test link type instead of $RHOST
When message was added back in 18739ff, both rsh and ssh used $RHOST. Later, when 5f8ca6c network namespaces support (TST_USE_NETNS=1) was added it would have been better to print test link type (rsh/ssh/netns at the time). Do it now. NOTE: more debug info can be printed with TST_NET_RHOST_RUN_DEBUG=1 therefore no need to add more info about the connection here. Link: https://lore.kernel.org/ltp/[email protected]/ Fixes: 5f8ca6c ("network: test_net.sh: allow to run network tests on a single machine") Signed-off-by: Petr Vorel <[email protected]>
1 parent 4941395 commit 605e160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testcases/lib/tst_net.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ tst_rhost_run()
263263
if [ $ret -eq 1 ]; then
264264
output=$(echo "$output" | sed 's/RTERR//')
265265
[ "$safe" ] && \
266-
tst_brk_ TBROK "'$cmd' failed on '$RHOST': '$output'"
266+
tst_brk_ TBROK "'$cmd' failed on $use: '$output'"
267267
fi
268268

269269
[ -z "$out" -a -n "$output" ] && echo "$output"

0 commit comments

Comments
 (0)