copy read_opts() from net_cmdlib.sh library

Signed-off-by: Alexey Kodanev <alexey.koda...@oracle.com>
---
 testcases/lib/test_net.sh |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/testcases/lib/test_net.sh b/testcases/lib/test_net.sh
index 51b3e38..397d963 100644
--- a/testcases/lib/test_net.sh
+++ b/testcases/lib/test_net.sh
@@ -75,3 +75,21 @@ tst_rhost_run()
 
        return $ret
 }
+
+# Blank for an IPV4 test; 6 for an IPV6 test.
+TST_EXEC_SUFFIX=
+
+tst_read_opts()
+{
+       OPTIND=0
+       while getopts "6" opt; do
+               case "$opt" in
+               6)
+                       TST_EXEC_SUFFIX=6;;
+               *)
+                       tst_brkm TBROK "tst_read_opts: unknown option: $opt"
+               ;;
+               esac
+       done
+       OPTIND=0
+}
-- 
1.7.1


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to