Skip to content

Commit

Permalink
disabled monitor test on macos buildkite
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Apr 30, 2024
1 parent 965946f commit 8b8c2ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auditbeat/module/file_integrity/fileinfo_test.go
Expand Up @@ -157,6 +157,6 @@ func TestSetUIDSetGIDBits(t *testing.T) {

func skipOnBuildkiteDarwin(t testing.TB, reason string) {
if os.Getenv("BUILDKITE") == "true" && runtime.GOOS == "darwin" {
t.Skip("Skip test on Buildkite MacOS: Wheel permission while expected staff")
t.Skip(reason)
}
}
9 changes: 9 additions & 0 deletions auditbeat/module/file_integrity/monitor/monitor_test.go
Expand Up @@ -144,6 +144,9 @@ func TestRecursiveSubdirPermissions(t *testing.T) {
t.Skip("Skipping permissions test on Windows")
}

// Can be removed after https://github.com/elastic/ingest-dev/issues/3268 is solved
skipOnBuildkiteDarwin(t, "TMP dir issue on MacOS")

if os.Getuid() == 0 {
t.Skip("skipping as root can access every file and thus this unittest will fail")
return
Expand Down Expand Up @@ -429,3 +432,9 @@ func assertNoError(t *testing.T, err error) {
t.Fatal(err)
}
}

func skipOnBuildkiteDarwin(t testing.TB, reason string) {
if os.Getenv("BUILDKITE") == "true" && runtime.GOOS == "darwin" {
t.Skip(reason)
}
}

0 comments on commit 8b8c2ff

Please sign in to comment.