From 2efaa889efb852cff39f0fe2c0e08a7cd2d5fda3 Mon Sep 17 00:00:00 2001 From: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com> Date: Wed, 5 Feb 2025 11:46:41 -0500 Subject: [PATCH] run --bmq-log-dir on darwin Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com> --- src/python/blazingmq/dev/it/cluster.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/python/blazingmq/dev/it/cluster.py b/src/python/blazingmq/dev/it/cluster.py index 804a1e0821..447ff17791 100644 --- a/src/python/blazingmq/dev/it/cluster.py +++ b/src/python/blazingmq/dev/it/cluster.py @@ -206,10 +206,11 @@ def stop(self): self.last_known_leader = None bad_exit = False cores_dir = None + core_pattern_path = Path("/proc/sys/kernel/core_pattern") - if self.copy_cores is not None: + if self.copy_cores is not None and core_pattern_path.exists(): try: - with open("/proc/sys/kernel/core_pattern") as core_pattern_file: + with open(core_pattern_path) as core_pattern_file: pattern = core_pattern_file.readline().strip() if "%p" in pattern: cores_dir = Path(pattern).parent