kselftest: rtnetlink.sh: add verbose flag

Uses a run_cmd helper function similar to other selftests to add
verbose functionality i.e. print executed commands and their outputs

Many commands silence or redirect output. This can be removed since
the verbose helper function captures output anyway and only outputs it
if VERBOSE is true. Similarly, the helper command for pipes to grep
searches stderr and stdout. This makes output redirection unnecessary
in those cases.

Signed-off-by: Daniel Mendes <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Daniel Mendes authored and David S. Miller committed 2023-09-18 09:34:06 +01:00
1 parent 760554a9ad
commit 9c2a19f715
1 file changed
+383 -583
File diff suppressed because it is too large. Load diff