aboutsummaryrefslogtreecommitdiff
path: root/testcases/lib
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2018-07-26 09:22:49 +0200
committerPetr Vorel <pvorel@suse.cz>2018-07-26 09:22:49 +0200
commitacc61c6f3d45fa45466223f3915673eb11360fd9 (patch)
treedd72e54b9e8cddf90a1a5fdbae0bf2b1b5c94302 /testcases/lib
parent18b780d2d374e2d3bbb75872a9b19fbb4ee5f53c (diff)
tst_test.sh: Silence getopts
We handle the error already there, so there is no point printing one more redundant message that doesn't have LTP format. Signed-off-by: Petr Vorel <pvorel@suse.cz> Suggested-by: Alexey Kodanev <alexey.kodanev@oracle.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'testcases/lib')
-rw-r--r--testcases/lib/tst_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
index a6787ccdb..9c5350707 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -342,7 +342,7 @@ tst_run()
OPTIND=1
- while getopts "hi:$TST_OPTS" _tst_name $TST_ARGS; do
+ while getopts ":hi:$TST_OPTS" _tst_name $TST_ARGS; do
case $_tst_name in
'h') tst_usage; exit 0;;
'i') TST_ITERATIONS=$OPTARG;;