test: rename assert_matches_exactly -> assert_full_match

More precise, needed in a later commit.
This commit is contained in:
Erik Arvstedt 2020-08-20 13:11:05 +02:00
parent 72000b4a99
commit 7367446761
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ def assert_matches(cmd, regexp):
raise Exception(f"Pattern '{regexp}' not found in '{out}'")
def assert_matches_exactly(cmd, regexp):
def assert_full_match(cmd, regexp):
out = succeed(cmd)
if not re.fullmatch(regexp, out):
raise Exception(f"Pattern '{regexp}' doesn't match '{out}'")

View File

@ -84,7 +84,7 @@ def prestop():
machine.fail("netns-exec nb-electrs ip a")
# test that netns-exec drops capabilities
assert_matches_exactly(
assert_full_match(
"su operator -c 'netns-exec nb-bitcoind capsh --print | grep Current '", "Current: =\n"
)