mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
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:
parent
f9f5677b3e
commit
ba16cd9071
4
third_party/forked/shell2junit/sh2ju.sh
vendored
4
third_party/forked/shell2junit/sh2ju.sh
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user