Make sh2ju use awk instead of bc.

awk is available in all of our test runners (as part of busybox or debian base packages), bc is not.
This commit is contained in:
Ryan Hitchman 2018-03-01 23:29:44 -08:00 committed by Ryan Hitchman
parent f9f5677b3e
commit ba16cd9071

View File

@ -130,8 +130,8 @@ function juLog() {
# calculate vars
asserts=$(($asserts+1))
errors=$(($errors+$err))
time=`echo "${end} - ${ini}" | bc -l`
total=`echo "${total} + ${time}" | bc -l`
time=`echo "${end} ${ini}" | awk '{print $1 - $2}'`
total=`echo "${total} ${time}" | awk '{print $1 + $2}'`
# write the junit xml report
## failure tag