Skip to content

Commit

Permalink
Update perf_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: zeroalphat <taichi-takemura@cybozu.co.jp>
  • Loading branch information
zeroalphat committed Sep 22, 2023
1 parent 087719f commit 3d42c11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/resource/perf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func TestPerfExecutor(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if perfExecuter.binPath == "" {
t.Skip("Skip test because perf is not installed")
}

ctx := context.Background()
cmd := exec.CommandContext(ctx, "yes")
Expand Down

0 comments on commit 3d42c11

Please sign in to comment.