From 386f154339afb2494f5353a396f0ccd694dcc11e Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Mon, 22 Mar 2021 13:56:18 -0400 Subject: [PATCH] Skip Auditbeat test_non_recursive on Darwin on CI (#24679) Closes: https://github.com/elastic/beats/issues/24678 (cherry picked from commit 355355b838d62824849f7d121bdfe89e489114e0) --- auditbeat/tests/system/test_file_integrity.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auditbeat/tests/system/test_file_integrity.py b/auditbeat/tests/system/test_file_integrity.py index bf90a9ee38e..8b47f9b22e9 100644 --- a/auditbeat/tests/system/test_file_integrity.py +++ b/auditbeat/tests/system/test_file_integrity.py @@ -1,5 +1,6 @@ import time import unittest +import platform from auditbeat import * @@ -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). @@ -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).