Helper for testing the hsmtool as a subprocess
| 1300 | |
| 1301 | |
| 1302 | class HsmTool(TailableProc): |
| 1303 | """Helper for testing the hsmtool as a subprocess""" |
| 1304 | def __init__(self, directory, *args): |
| 1305 | self.prefix = "lightning-hsmtool" |
| 1306 | TailableProc.__init__(self, os.path.join(directory, "lightning-hsmtool")) |
| 1307 | assert hasattr(self, "env") |
| 1308 | self.cmd_line = ["tools/lightning-hsmtool", *args] |
| 1309 | |
| 1310 | |
| 1311 | @unittest.skipIf(VALGRIND, "It does not play well with prompt and key derivation.") |
no outgoing calls