diff options
| author | Shelley-BaoYue <baoyue2@huawei.com> | 2023-10-26 14:28:25 +0800 |
|---|---|---|
| committer | Shelley-BaoYue <baoyue2@huawei.com> | 2023-10-27 16:06:28 +0800 |
| commit | d8188ac82760149f55eb8930e6be1ab99ad46fa3 (patch) | |
| tree | 06d77ae2dacaffda5d987930aed630f06e34a9a8 /edge | |
| parent | Merge pull request #5114 from Shelley-BaoYue/master (diff) | |
| download | kubeedge-d8188ac82760149f55eb8930e6be1ab99ad46fa3.tar.gz | |
modify parameters for ginkgo v2
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'edge')
| -rwxr-xr-x | edge/test/integration/utils/common/log.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/edge/test/integration/utils/common/log.go b/edge/test/integration/utils/common/log.go index 892a6076f..cc4260979 100755 --- a/edge/test/integration/utils/common/log.go +++ b/edge/test/integration/utils/common/log.go @@ -49,11 +49,11 @@ func Infof(format string, args ...interface{}) { // PrintTestcaseNameandStatus to print the test case name and status of execution func PrintTestcaseNameandStatus() { var Status string - testSpecReport := ginkgo.CurrentGinkgoTestDescription() - if testSpecReport.Failed { + testSpecReport := ginkgo.CurrentSpecReport() + if testSpecReport.Failed() { Status = "FAILED" } else { Status = "PASSED" } - Infof("TestCase:%40s Status=%s", testSpecReport.TestText, Status) + Infof("TestCase:%40s Status=%s", testSpecReport.LeafNodeText, Status) } |
