All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [COMMITTED] [PATCH 1/1] lib/tst_net.sh: Silence getopts for legacy API
@ 2018-05-23  8:18 Petr Vorel
  0 siblings, 0 replies; only message in thread
From: Petr Vorel @ 2018-05-23  8:18 UTC (permalink / raw)
  To: ltp

Commits bellow removed ':' silencing getopts for legacy API. As there is
currently no warning for network scripts using TST_PARSE_ARGS in legacy
API, adding it into library.

5dea314ee ("net/nfs_lib.sh: Cleanup for legacy API")
52c754c7b ("net/tcp_fastopen_run.sh: Cleanup in TST_PARSE_ARGS functions
for legacy API")

Reported-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/lib/tst_net.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/lib/tst_net.sh b/testcases/lib/tst_net.sh
index 5a0fe77ab..a8f80b518 100644
--- a/testcases/lib/tst_net.sh
+++ b/testcases/lib/tst_net.sh
@@ -41,7 +41,7 @@ tst_net_parse_args()
 tst_net_read_opts()
 {
 	local OPTIND
-	while getopts "$TST_OPTS" opt; do
+	while getopts ":$TST_OPTS" opt; do
 		$TST_PARSE_ARGS "$opt" "$OPTARG"
 	done
 }
-- 
2.16.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-23  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-23  8:18 [LTP] [COMMITTED] [PATCH 1/1] lib/tst_net.sh: Silence getopts for legacy API 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.