mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00: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
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