Skip to content

Commit c0fb370

Browse files
authored
Merge pull request #42 from kumarabd/addLabels
fixed minor bug for reading yamls
2 parents 2e4b7a7 + 711fb74 commit c0fb370

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

smi-conformance/test-gen/test_gen.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ func RunTest(meshConfig ServiceMesh, annotations, labels map[string]string) Resu
6262
SMObj: meshConfig,
6363
}
6464

65+
if len(args) != 0 {
66+
options.TestDirs = args
67+
}
68+
6569
testHandlers := make(map[string]map[string]test.CustomTest)
6670
testHandlers["traffic-access"] = serviceMeshConfObj.TrafficAccessGetTests()
6771
testHandlers["traffic-spec"] = serviceMeshConfObj.TrafficSpecGetTests()
@@ -75,9 +79,6 @@ func RunTest(meshConfig ServiceMesh, annotations, labels map[string]string) Resu
7579
NamespaceAnnotations: annotations,
7680
NamespaceLabels: labels,
7781
}
78-
if len(args) != 0 {
79-
options.TestDirs = args
80-
}
8182

8283
// Runs the test using the inCluster kubeConfig (runs only when the code is running inside the pod)
8384
harness.InCluster = true

0 commit comments

Comments
 (0)