[LTP] [PATCH 1/2] net: Add tst_net_driver helper

Petr Vorel pvorel@suse.cz
Fri Nov 2 23:14:53 CET 2018


Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/lib/tst_net.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testcases/lib/tst_net.sh b/testcases/lib/tst_net.sh
index d1206e285..3a243ca05 100644
--- a/testcases/lib/tst_net.sh
+++ b/testcases/lib/tst_net.sh
@@ -653,6 +653,11 @@ tst_set_sysctl()
 
 	tst_rhost_run $safe -c "sysctl -q -w $add_opt $name=$value"
 }
+tst_net_driver()
+{
+	tst_test_drivers $@
+	tst_rhost_run "tst_test_drivers $@"
+}
 
 tst_cleanup_rhost()
 {
-- 
2.19.1



More information about the ltp mailing list