tests.py: fix syntax warning
Fixes this warning from the NixOS VM test script linter: SyntaxWarning: invalid escape sequence '\['
This commit is contained in:
+2
-2
@@ -452,10 +452,10 @@ def _():
|
|||||||
def expect_clightning_log(str):
|
def expect_clightning_log(str):
|
||||||
machine.wait_until_succeeds(log_has_string("clightning", str))
|
machine.wait_until_succeeds(log_has_string("clightning", str))
|
||||||
|
|
||||||
expect_clightning_log("plugin-trustedcoin[^^]\[0m\s+bitcoind RPC working")
|
expect_clightning_log(r"plugin-trustedcoin\b.*?\bbitcoind RPC working")
|
||||||
if "regtest" in enabled_tests:
|
if "regtest" in enabled_tests:
|
||||||
num_blocks = test_data["num_blocks"]
|
num_blocks = test_data["num_blocks"]
|
||||||
expect_clightning_log(f"plugin-trustedcoin[^^]\[0m\s+returning block {num_blocks}")
|
expect_clightning_log(rf"plugin-trustedcoin\b.*?\breturning block {num_blocks}")
|
||||||
|
|
||||||
|
|
||||||
if "netns-isolation" in enabled_tests:
|
if "netns-isolation" in enabled_tests:
|
||||||
|
|||||||
Reference in New Issue
Block a user