summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJiyoung Giuliana Yun <t2wish@gmail.com>2016-10-15 04:02:09 +0900
committerJan Vorlicek <janvorli@microsoft.com>2016-10-14 21:02:09 +0200
commit6611f1222a7b45d0110e988f16fae5da50b3248a (patch)
tree3f05872d037d9feb5bac128361c184b18ccaa3a8 /tests
parent9b7f01a15eba1122516d4c566bc60c3c57cbaa22 (diff)
downloadcoreclr-6611f1222a7b45d0110e988f16fae5da50b3248a.tar.gz
coreclr-6611f1222a7b45d0110e988f16fae5da50b3248a.tar.bz2
coreclr-6611f1222a7b45d0110e988f16fae5da50b3248a.zip
Update the header string in runtest.sh (#5785)
Replace 'bc' with the bash expr. Add the countTotalTests numbers to headers depends on verbose option. Fix #5677 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtest.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 0c1124f311..df552beb48 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -738,10 +738,14 @@ function finish_test {
local testRunningTime=
local header=
+ if ((verbose == 1)); then
+ header=$(printf "[%4d]" $countTotalTests)
+ fi
+
if [ "$showTime" == "ON" ]; then
testEndTime=$(date +%s)
- testRunningTime=$(echo "$testEndTime - ${testStartTimes[$nextProcessIndex]}" | bc)
- header=$(printf "[%03d:%4.0fs] " "$countTotalTests" "$testRunningTime")
+ testRunningTime=$(( $testEndTime - ${testStartTimes[$nextProcessIndex]} ))
+ header=$header$(printf "[%4ds]" $testRunningTime)
fi
local xunitTestResult