File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,9 @@ limitations under the License.
22
22
package framework
23
23
24
24
import (
25
- "bufio"
26
25
"bytes"
27
26
"fmt"
28
27
"math/rand"
29
- "os"
30
28
"strings"
31
29
"sync"
32
30
"time"
@@ -866,18 +864,6 @@ func (cl *ClusterVerification) ForEach(podFunc func(v1.Pod)) error {
866
864
return err
867
865
}
868
866
869
- // GetLogToFileFunc is a convenience function that returns a function that have the same interface as
870
- // e2elog.Logf, but writes to a specified file.
871
- func GetLogToFileFunc (file * os.File ) func (format string , args ... interface {}) {
872
- return func (format string , args ... interface {}) {
873
- writer := bufio .NewWriter (file )
874
- if _ , err := fmt .Fprintf (writer , format , args ... ); err != nil {
875
- Logf ("Failed to write file %v with test performance data: %v" , file .Name (), err )
876
- }
877
- writer .Flush ()
878
- }
879
- }
880
-
881
867
const (
882
868
// preconfiguredRuntimeHandler is the name of the runtime handler that is expected to be
883
869
// preconfigured in the test environment.
You can’t perform that action at this time.
0 commit comments