summaryrefslogtreecommitdiff
path: root/edge
diff options
context:
space:
mode:
authorShelley-BaoYue <baoyue2@huawei.com>2023-10-26 14:28:25 +0800
committerShelley-BaoYue <baoyue2@huawei.com>2023-10-27 16:06:28 +0800
commitd8188ac82760149f55eb8930e6be1ab99ad46fa3 (patch)
tree06d77ae2dacaffda5d987930aed630f06e34a9a8 /edge
parentMerge pull request #5114 from Shelley-BaoYue/master (diff)
downloadkubeedge-d8188ac82760149f55eb8930e6be1ab99ad46fa3.tar.gz
modify parameters for ginkgo v2
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'edge')
-rwxr-xr-xedge/test/integration/utils/common/log.go6
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)
}