From 7c876664b1cc40ab4046c37cbd726744b2b3d8df Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Thu, 5 Aug 2021 00:49:11 +0200 Subject: [PATCH] netns test: update matching of 'capsh' output The output now contains multiple lines. --- test/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests.py b/test/tests.py index 75efbb2..88856e9 100644 --- a/test/tests.py +++ b/test/tests.py @@ -271,9 +271,9 @@ def _(): if "joinmarket" in enabled_tests: # netns-exec should drop capabilities - assert_full_match( + assert_matches( "runuser -u operator -- netns-exec nb-joinmarket capsh --print | grep Current", - "Current: =\n", + re.compile("^Current: =$", re.MULTILINE), ) if "clightning" in enabled_tests: