From 363cb35ff705c74c95d6b4c242f7521706aa42e3 Mon Sep 17 00:00:00 2001 From: aaron <462826@qq.com> Date: Tue, 8 Jun 2021 10:29:48 +0800 Subject: [PATCH] close task#39020 --- src/service/testing/unitTestReport.go | 4 ++-- src/service/testing/ztfTestReport.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/service/testing/unitTestReport.go b/src/service/testing/unitTestReport.go index d7833417..f836319f 100644 --- a/src/service/testing/unitTestReport.go +++ b/src/service/testing/unitTestReport.go @@ -108,7 +108,7 @@ func GenUnitTestReport(cases []model.UnitResult, classNameMaxWidth int, timeVal i118Utils.I118Prt.Sprintf("run_scripts", report.Total, report.Duration, secTag, passStr, failStr, skipStr, - vari.LogDir+"result.txt", + " "+vari.LogDir+"result.txt ", )) // 输出到屏幕 @@ -116,7 +116,7 @@ func GenUnitTestReport(cases []model.UnitResult, classNameMaxWidth int, timeVal i118Utils.I118Prt.Sprintf("run_scripts", report.Total, report.Duration, secTag, color.GreenString(passStr), color.RedString(failStr), color.YellowString(skipStr), - vari.LogDir+"result.txt", + " "+vari.LogDir+"result.txt ", )) json, _ := json.Marshal(report) diff --git a/src/service/testing/ztfTestReport.go b/src/service/testing/ztfTestReport.go index b3b62296..aac162f5 100644 --- a/src/service/testing/ztfTestReport.go +++ b/src/service/testing/ztfTestReport.go @@ -98,14 +98,14 @@ func GenZTFTestReport(report model.TestReport, pathMaxWidth int) { i118Utils.I118Prt.Sprintf("run_scripts", report.Total, report.Duration, secTag, passStr, failStr, skipStr, - vari.LogDir+"result.txt", + " "+vari.LogDir+"result.txt ", )) // 打印到屏幕 logUtils.Screen("\n" + time.Now().Format("2006-01-02 15:04:05") + " " + i118Utils.I118Prt.Sprintf("run_scripts", report.Total, report.Duration, secTag, color.GreenString(passStr), color.RedString(failStr), color.YellowString(skipStr), - vari.LogDir+"result.txt", + " "+vari.LogDir+"result.txt ", )) //println("===" + vari.LogDir) -- GitLab