Commit 7ffd5b29 authored by m1093782566's avatar m1093782566

fix newline in raw string in e2e net perf case

parent 17ec91c5
...@@ -69,6 +69,7 @@ func (i *IPerfResults) ToTSV() string { ...@@ -69,6 +69,7 @@ func (i *IPerfResults) ToTSV() string {
// NewIPerf parses an IPerf CSV output line into an IPerfResult. // NewIPerf parses an IPerf CSV output line into an IPerfResult.
func NewIPerf(csvLine string) *IPerfResult { func NewIPerf(csvLine string) *IPerfResult {
csvLine = strings.Trim(csvLine, "\n")
slice := StrSlice(strings.Split(csvLine, ",")) slice := StrSlice(strings.Split(csvLine, ","))
if len(slice) != 9 { if len(slice) != 9 {
framework.Failf("Incorrect fields in the output: %v (%v out of 9)", slice, len(slice)) framework.Failf("Incorrect fields in the output: %v (%v out of 9)", slice, len(slice))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment