Skip to content

Commit

Permalink
make kpt binary optional in test harness (#2758)
Browse files Browse the repository at this point in the history
  • Loading branch information
natasha41575 committed Feb 8, 2022
1 parent 58b5e35 commit 5dad3b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/test/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5dad3b5

Please sign in to comment.