Skip to content

Commit d0d4572

Browse files
authored
Merge pull request kubernetes#84411 from jfbai/move-funcs-of-framework-to-common
Move funcs of framework to common runtimeclass.
2 parents ccf3174 + 5862612 commit d0d4572

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test/e2e/framework/framework.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ limitations under the License.
2222
package framework
2323

2424
import (
25-
"bufio"
2625
"bytes"
2726
"fmt"
2827
"math/rand"
29-
"os"
3028
"strings"
3129
"sync"
3230
"time"
@@ -866,18 +864,6 @@ func (cl *ClusterVerification) ForEach(podFunc func(v1.Pod)) error {
866864
return err
867865
}
868866

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-
881867
const (
882868
// preconfiguredRuntimeHandler is the name of the runtime handler that is expected to be
883869
// preconfigured in the test environment.

0 commit comments

Comments
 (0)