From 5dad3b5a3cca4ee61e52ae43574e74ce25cd7866 Mon Sep 17 00:00:00 2001 From: Natasha Sarkar Date: Tue, 8 Feb 2022 13:20:47 -0800 Subject: [PATCH] make kpt binary optional in test harness (#2758) --- pkg/test/runner/runner.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/test/runner/runner.go b/pkg/test/runner/runner.go index e9d3a27bb0..5bccd10bdf 100644 --- a/pkg/test/runner/runner.go +++ b/pkg/test/runner/runner.go @@ -73,9 +73,11 @@ func NewRunner(t *testing.T, testCase TestCase, c string) (*Runner, error) { } kptBin, err := getKptBin() if err != nil { - return nil, fmt.Errorf("failed to find kpt binary: %w", err) + t.Logf("failed to find kpt binary: %v", err) + } + if kptBin != "" { + t.Logf("Using kpt binary: %s", kptBin) } - t.Logf("Using kpt binary: %s", kptBin) return &Runner{ pkgName: filepath.Base(testCase.Path), testCase: testCase,