From 711fb74fbc55d666d27b1fd30cad13f9c537bbf7 Mon Sep 17 00:00:00 2001 From: kumarabd Date: Fri, 14 Aug 2020 18:15:29 +0530 Subject: [PATCH] fixed minor bug for reading yamls Signed-off-by: kumarabd --- smi-conformance/test-gen/test_gen.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/smi-conformance/test-gen/test_gen.go b/smi-conformance/test-gen/test_gen.go index b8e5e90..f46c42d 100644 --- a/smi-conformance/test-gen/test_gen.go +++ b/smi-conformance/test-gen/test_gen.go @@ -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() @@ -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