Merge pull request #60695 from rmmh/sh2ju-awk

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

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 will fix spurious errors in the typecheck job.

**Release note**:
```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue
2018-03-24 00:34:28 -07:00
committed by GitHub

View File

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