runltp: Fix overrided -T option
Looks like we overided the -T option for runltp in:
commit 5f71cf97d5753c5506cdf8287812f28e2fffe4aa
Author: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Date: Tue Sep 23 15:59:43 2014 +0800
runltp, pan/ltp-pan.c: record test cases(not fully tested) into file
And now the -T is listed twice in the options and in the case.
...
-T TCONFCMDFILE Command file with all test cases that are not fully tested.
...
-T REPETITION Execute the testsuite for REPETITION no. of times
...
This commit renames the -T REPETITION to -I ITERATIONS.
Reported-by: Mason <slash.tmp@free.fr>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/runltp b/runltp
index e8578dd..29f43a0 100755
--- a/runltp
+++ b/runltp
@@ -160,7 +160,7 @@
-t 45m = 45 minutes
-t 24h = 24 hours
-t 2d = 2 days
- -T REPETITION Execute the testsuite for REPETITION no. of times
+ -I ITERATIONS Execute the testsuite ITERATIONS times.
-w CMDFILEADDR Uses wget to get the user's list of testcases.
-x INSTANCES Run multiple instances of this testsuite.
-b DEVICE Some tests require an unmounted block device
@@ -218,7 +218,7 @@
version_date=$(cat "$LTPROOT/Version")
- while getopts a:c:C:T:d:D:f:F:ehi:K:g:l:m:M:Nno:pqr:s:S:t:T:w:x:b:B:z:Z: arg
+ while getopts a:c:C:T:d:D:f:F:ehi:I:K:g:l:m:M:Nno:pqr:s:S:t:T:w:x:b:B:z:Z: arg
do case $arg in
a) EMAIL_TO=$OPTARG
ALT_EMAIL_OUT=1;;
@@ -424,7 +424,7 @@
# (2m = two minutes, 2h = two hours, etc)
DURATION="-t $OPTARG" ;;
- T) # In case you want the testcases to runsequentially RUN_REPEATED times
+ I) # In case you want the testcases to runsequentially RUN_REPEATED times
RUN_REPEATED=$OPTARG;;
w) CMDFILEADDR=$OPTARG;;