From 372617a4f53c7705e2d790d486bec7b81ecb8296 Mon Sep 17 00:00:00 2001 From: Patrick Insinger Date: Tue, 11 May 2021 16:15:39 -0400 Subject: [PATCH] test_runner - pgrep remove -c arg macOS doesn't support it --- test_runner/fixtures/zenith_fixtures.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_runner/fixtures/zenith_fixtures.py b/test_runner/fixtures/zenith_fixtures.py index 0ff698ecf4..4c44c166d5 100644 --- a/test_runner/fixtures/zenith_fixtures.py +++ b/test_runner/fixtures/zenith_fixtures.py @@ -53,8 +53,9 @@ def zenfixture(func): @pytest.fixture(autouse=True, scope='session') def safety_check(): """ Ensure that no unwanted daemons are running before we start testing. """ - cmd = ['pgrep', '-c', 'pageserver|postgres|wal_acceptor'] - result = subprocess.run(cmd) + # does not use -c as it is not supported on macOS + cmd = ['pgrep', 'pageserver|postgres|wal_acceptor'] + result = subprocess.run(cmd, stdout=subprocess.DEVNULL) if result.returncode == 0: # returncode of 0 means it found something. # This is bad; we don't want any of those processes polluting the