netns test: update matching of 'capsh' output
The output now contains multiple lines.
This commit is contained in:
parent
308a11f22b
commit
7c876664b1
@ -271,9 +271,9 @@ def _():
|
|||||||
|
|
||||||
if "joinmarket" in enabled_tests:
|
if "joinmarket" in enabled_tests:
|
||||||
# netns-exec should drop capabilities
|
# netns-exec should drop capabilities
|
||||||
assert_full_match(
|
assert_matches(
|
||||||
"runuser -u operator -- netns-exec nb-joinmarket capsh --print | grep Current",
|
"runuser -u operator -- netns-exec nb-joinmarket capsh --print | grep Current",
|
||||||
"Current: =\n",
|
re.compile("^Current: =$", re.MULTILINE),
|
||||||
)
|
)
|
||||||
|
|
||||||
if "clightning" in enabled_tests:
|
if "clightning" in enabled_tests:
|
||||||
|
Loading…
Reference in New Issue
Block a user