Skip to content

Commit

Permalink
fixed minor bug for reading yamls
Browse files Browse the repository at this point in the history
Signed-off-by: kumarabd <[email protected]>
  • Loading branch information
kumarabd committed Aug 14, 2020
1 parent 9282b72 commit 711fb74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions smi-conformance/test-gen/test_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ func RunTest(meshConfig ServiceMesh, annotations, labels map[string]string) Resu
SMObj: meshConfig,
}

if len(args) != 0 {
options.TestDirs = args
}

testHandlers := make(map[string]map[string]test.CustomTest)
testHandlers["traffic-access"] = serviceMeshConfObj.TrafficAccessGetTests()
testHandlers["traffic-spec"] = serviceMeshConfObj.TrafficSpecGetTests()
Expand All @@ -75,9 +79,6 @@ func RunTest(meshConfig ServiceMesh, annotations, labels map[string]string) Resu
NamespaceAnnotations: annotations,
NamespaceLabels: labels,
}
if len(args) != 0 {
options.TestDirs = args
}

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

0 comments on commit 711fb74

Please sign in to comment.