diff options
author | Jiyoung Giuliana Yun <t2wish@gmail.com> | 2016-10-15 04:02:09 +0900 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2016-10-14 21:02:09 +0200 |
commit | 6611f1222a7b45d0110e988f16fae5da50b3248a (patch) | |
tree | 3f05872d037d9feb5bac128361c184b18ccaa3a8 /tests | |
parent | 9b7f01a15eba1122516d4c566bc60c3c57cbaa22 (diff) | |
download | coreclr-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-x | tests/runtest.sh | 8 |
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 |