Skip to content

Commit 5dad3b5

Browse files
authored
make kpt binary optional in test harness (#2758)
1 parent 58b5e35 commit 5dad3b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/test/runner/runner.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ func NewRunner(t *testing.T, testCase TestCase, c string) (*Runner, error) {
7373
}
7474
kptBin, err := getKptBin()
7575
if err != nil {
76-
return nil, fmt.Errorf("failed to find kpt binary: %w", err)
76+
t.Logf("failed to find kpt binary: %v", err)
77+
}
78+
if kptBin != "" {
79+
t.Logf("Using kpt binary: %s", kptBin)
7780
}
78-
t.Logf("Using kpt binary: %s", kptBin)
7981
return &Runner{
8082
pkgName: filepath.Base(testCase.Path),
8183
testCase: testCase,

0 commit comments

Comments
 (0)