Skip to content

Commit

Permalink
tst_net.sh: tst_ping(): check for ping -I support
Browse files Browse the repository at this point in the history
tst_ping() may require ping -I support, which is not supported by
ping from inetutils.

Link: #1149 (comment)
Reported-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Apr 5, 2024
1 parent 87d90a0 commit 64b1165
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testcases/lib/tst_net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,10 @@ tst_ping()
c) ping_count="$OPTARG";;
s) msg_sizes="$OPTARG";;
p) pattern_opt="-p $OPTARG";;
I) src_iface="$OPTARG";;
I) src_iface="$OPTARG"
tst_ping_opt_unsupported -I $OPTARG && \
tst_brk_ TCONF "unsupported ping version (ping from inetutils?)"
;;
H) dst_addr="$OPTARG";;
*) tst_brk_ TBROK "tst_ping: unknown option: $OPTARG";;
esac
Expand Down

0 comments on commit 64b1165

Please sign in to comment.