Skip to content

Commit

Permalink
added npcap installation skip on ci (#40488) (#40522)
Browse files Browse the repository at this point in the history
(cherry picked from commit 10e9be1)

Co-authored-by: Olga Naydyonock <[email protected]>
  • Loading branch information
mergify[bot] and oakrizan authored Aug 14, 2024
1 parent 58290dc commit 85d1ec8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x-pack/packetbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,12 @@ func TestPackages() error {
}

func SystemTest(ctx context.Context) error {
mg.SerialDeps(getNpcapInstaller, devtools.BuildSystemTestBinary)
// Buildkite (CI) images have preinstalled npcap
if os.Getenv("CI") == "true" {
mg.SerialDeps(devtools.BuildSystemTestBinary)
} else {
mg.SerialDeps(getNpcapInstaller, devtools.BuildSystemTestBinary)
}

args := devtools.DefaultGoTestIntegrationArgs()
args.Packages = []string{"./tests/system/..."}
Expand Down

0 comments on commit 85d1ec8

Please sign in to comment.