diff --git a/test/scenarios/lib.py b/test/scenarios/lib.py index 2989fec..78c28a8 100644 --- a/test/scenarios/lib.py +++ b/test/scenarios/lib.py @@ -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}'") diff --git a/test/scenarios/withnetns.py b/test/scenarios/withnetns.py index 7534a14..6b5df81 100644 --- a/test/scenarios/withnetns.py +++ b/test/scenarios/withnetns.py @@ -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" )