Skip to content

Commit

Permalink
Skip Auditbeat test_non_recursive on Darwin on CI (elastic#24679)
Browse files Browse the repository at this point in the history
Closes: elastic#24678
(cherry picked from commit 355355b)
  • Loading branch information
andrewkroh committed Mar 22, 2021
1 parent 672e1b8 commit 386f154
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auditbeat/tests/system/test_file_integrity.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import time
import unittest
import platform
from auditbeat import *


Expand Down Expand Up @@ -61,6 +62,8 @@ def wait_output(self, min_events):
else:
break

@unittest.skipIf(os.getenv("BUILD_ID") is not None and platform.system() == 'Darwin',
'Flaky test: https://github.com/elastic/beats/issues/24678')
def test_non_recursive(self):
"""
file_integrity monitors watched directories (non recursive).
Expand Down Expand Up @@ -130,7 +133,7 @@ def test_non_recursive(self):
# assert file inside subdir is not reported
assert self.log_contains(file3) is False

@unittest.skip("Skipped as flaky: https://github.com/elastic/beats/issues/7731")
@unittest.skipIf(os.getenv("BUILD_ID") is not None, "Skipped as flaky: https://github.com/elastic/beats/issues/7731")
def test_recursive(self):
"""
file_integrity monitors watched directories (recursive).
Expand Down

0 comments on commit 386f154

Please sign in to comment.