[LTP] [PATCH 1/1] lib/tst_net.sh: Add checks for awk
Petr Vorel
pvorel@suse.cz
Wed May 23 08:57:29 CEST 2018
Hi,
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> testcases/lib/tst_net.sh | 4 ++++
> 1 file changed, 4 insertions(+)
> diff --git a/testcases/lib/tst_net.sh b/testcases/lib/tst_net.sh
> index b0a78e14b..e675d9b2e 100644
> --- a/testcases/lib/tst_net.sh
> +++ b/testcases/lib/tst_net.sh
> @@ -255,6 +255,8 @@ tst_get_hwaddrs()
> # LINK: link number starting from 0. Default value is '0'.
> tst_hwaddr()
> {
> + tst_check_cmds awk
> +
> local type="${1:-lhost}"
> local link_num="${2:-0}"
> local hwaddrs=
> @@ -269,6 +271,8 @@ tst_hwaddr()
> # LINK: link number starting from 0. Default value is '0'.
> tst_iface()
> {
> + tst_check_cmds awk
> +
> local type="${1:-lhost}"
> local link_num="${2:-0}"
> link_num="$(( $link_num + 1 ))"
Pushed.
Kind regards,
Petr
More information about the ltp
mailing list