From 7e7c31a227d803fbc9bfe239259ece056deedfae Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Tue, 20 Aug 2024 01:51:18 +1000 Subject: [PATCH] Ignore warnings from lsof output (#175) This seems to cause issues when running alongside Docker, for example. --- scripts/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/helpers.py b/scripts/utils/helpers.py index 447e9d5..cb75d58 100644 --- a/scripts/utils/helpers.py +++ b/scripts/utils/helpers.py @@ -88,7 +88,7 @@ class ParseFileName: def get_open_files_in_dir(dir_name): - result = subprocess.run(['lsof', '-Fn', '+D', f'{dir_name}'], check=False, capture_output=True) + result = subprocess.run(['lsof', '-w', '-Fn', '+D', f'{dir_name}'], check=False, capture_output=True) ret = result.stdout.decode('utf-8') err = result.stderr.decode('utf-8') if err: