mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 09:53:38 -04:00
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:
commit
7ba67b399d
1 changed files with 2 additions and 2 deletions
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 a new issue