All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] lib/tst_net.sh: Add checks for awk
@ 2018-05-17  9:31 Petr Vorel
  2018-05-23  6:57 ` Petr Vorel
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Vorel @ 2018-05-17  9:31 UTC (permalink / raw)
  To: ltp

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 ))"
-- 
2.16.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [PATCH 1/1] lib/tst_net.sh: Add checks for awk
  2018-05-17  9:31 [LTP] [PATCH 1/1] lib/tst_net.sh: Add checks for awk Petr Vorel
@ 2018-05-23  6:57 ` Petr Vorel
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2018-05-23  6:57 UTC (permalink / raw)
  To: ltp

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-23  6:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-17  9:31 [LTP] [PATCH 1/1] lib/tst_net.sh: Add checks for awk Petr Vorel
2018-05-23  6:57 ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.