lint
parent
84f2c86a50
commit
782bdae4ed
|
@ -1,18 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Copyright 2021 The Kubernetes Authors All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# Copyright 2021 The Kubernetes Authors All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
set -x -o pipefail
|
||||
# Only run this on PRs
|
||||
|
|
|
@ -64,7 +64,7 @@ func (rm *resultManager) averageTime(binary *Binary) float64 {
|
|||
return average(times)
|
||||
}
|
||||
|
||||
func (rm *resultManager) summarizeResults(binaries []*Binary, driver string) {
|
||||
func (rm *resultManager) summarizeResults(binaries []*Binary) {
|
||||
// print total and average times
|
||||
for _, b := range binaries {
|
||||
fmt.Printf("Times for %s: ", b.Name())
|
||||
|
|
|
@ -50,7 +50,7 @@ func CompareMinikubeStart(ctx context.Context, out io.Writer, binaries []*Binary
|
|||
fmt.Printf("error collecting results for %s driver: %v\n", d, err)
|
||||
continue
|
||||
}
|
||||
rm.summarizeResults(binaries, d)
|
||||
rm.summarizeResults(binaries)
|
||||
fmt.Println()
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue