pytest: don't try exposesecret test under valgrind.

There's a known issue with hsm passwords and valgrind:

```
        write_all(master_fd, (password + '\n').encode("utf-8"))
>       l1.daemon.wait_for_log("Server started with public key")

tests/test_plugin.py:4526: 
...
                        if self.is_in_log(r):
                            print("({} was previously in logs!)".format(r))
>                   raise TimeoutError('Unable to find "{}" in logs.'.format(exs))
E                   TimeoutError: Unable to find "[re.compile('Server started with public key')]" in logs.
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-11-15 12:49:44 +10:30
parent 3ef52d3001
commit ecc3a00839

View File

@ -4450,6 +4450,7 @@ def test_listchannels_broken_message(node_factory):
l1.rpc.listchannels()
@unittest.skipIf(VALGRIND, "It does not play well with prompt and key derivation.")
def test_exposesecret(node_factory):
l1, l2 = node_factory.get_nodes(2, opts=[{'exposesecret-passphrase': "test_exposesecret"}, {}])