netns test: update matching of 'capsh' output

The output now contains multiple lines.
This commit is contained in:
Erik Arvstedt 2021-08-05 00:49:11 +02:00
parent 308a11f22b
commit 7c876664b1
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -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: