From 390bf6359e3cef2dc5bb2e376a7389d917d1d8d3 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 31 Oct 2017 10:35:08 +1030 Subject: [PATCH] test_lightning.py: don't get confused by valgrind core files. I run with ulimit -c unlimited, and valgrind leaves core files like valgrind-errors.22114.core.22114 which test_lightning.py tries to parse as log files. Signed-off-by: Rusty Russell --- tests/test_lightningd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index dd9db76fe..ce020f459 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -153,7 +153,7 @@ class BaseLightningDTests(unittest.TestCase): def getValgrindErrors(self, node): for error_file in os.listdir(node.daemon.lightning_dir): - if not re.match("valgrind-errors.\d+", error_file): + if not re.fullmatch("valgrind-errors.\d+", error_file): continue; with open(os.path.join(node.daemon.lightning_dir, error_file), 'r') as f: errors = f.read().strip()