Browse Source

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 <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
390bf6359e
  1. 2
      tests/test_lightningd.py

2
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()

Loading…
Cancel
Save