hs-test: logging improvements
[vpp.git] / extras / hs-test / suite_veth_test.go
index f4c3684..d47bf8c 100644 (file)
@@ -107,7 +107,9 @@ var _ = Describe("VethsSuite", Ordered, ContinueOnFailure, func() {
                test := test
                pc := reflect.ValueOf(test).Pointer()
                funcValue := runtime.FuncForPC(pc)
-               It(strings.Split(funcValue.Name(), ".")[2], func(ctx SpecContext) {
+               testName := strings.Split(funcValue.Name(), ".")[2]
+               It(testName, func(ctx SpecContext) {
+                       s.log(testName + ": BEGIN")
                        test(&s)
                }, SpecTimeout(time.Minute*5))
        }
@@ -123,7 +125,6 @@ var _ = Describe("VethsSuiteSolo", Ordered, ContinueOnFailure, Serial, func() {
        })
        AfterAll(func() {
                s.TearDownSuite()
-
        })
        AfterEach(func() {
                s.TearDownTest()
@@ -134,7 +135,9 @@ var _ = Describe("VethsSuiteSolo", Ordered, ContinueOnFailure, Serial, func() {
                test := test
                pc := reflect.ValueOf(test).Pointer()
                funcValue := runtime.FuncForPC(pc)
-               It(strings.Split(funcValue.Name(), ".")[2], Label("SOLO"), func(ctx SpecContext) {
+               testName := strings.Split(funcValue.Name(), ".")[2]
+               It(testName, Label("SOLO"), func(ctx SpecContext) {
+                       s.log(testName + ": BEGIN")
                        test(&s)
                }, SpecTimeout(time.Minute*5))
        }