mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Merge pull request #118065 from BenTheElder/prune-junit-cleanup
prune-junit-xml cleanup
This commit is contained in:
commit
3d27dee047
13
cmd/prune-junit-xml/OWNERS
Normal file
13
cmd/prune-junit-xml/OWNERS
Normal file
@ -0,0 +1,13 @@
|
||||
# See the OWNERS docs at https://go.k8s.io/owners
|
||||
|
||||
reviewers:
|
||||
- aojea
|
||||
- bentheelder
|
||||
- dims
|
||||
- liggitt
|
||||
- pohly
|
||||
approvers:
|
||||
- dims
|
||||
- liggitt
|
||||
labels:
|
||||
- sig/testing
|
@ -29,8 +29,6 @@ import (
|
||||
func main() {
|
||||
maxTextSize := flag.Int("max-text-size", 1, "maximum size of attribute or text (in MB)")
|
||||
flag.Parse()
|
||||
|
||||
if flag.NArg() > 0 {
|
||||
for _, path := range flag.Args() {
|
||||
fmt.Printf("processing junit xml file : %s\n", path)
|
||||
xmlReader, err := os.Open(path)
|
||||
@ -56,7 +54,6 @@ func main() {
|
||||
}
|
||||
fmt.Println("done.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func pruneXML(suites *junitxml.JUnitTestSuites, maxBytes int) {
|
||||
|
Loading…
Reference in New Issue
Block a user