Helper for testing the hsmtool as a subprocess
| 1101 | |
| 1102 | |
| 1103 | class HsmTool(TailableProc): |
| 1104 | """Helper for testing the hsmtool as a subprocess""" |
| 1105 | def __init__(self, directory, *args): |
| 1106 | self.prefix = "hsmtool" |
| 1107 | TailableProc.__init__(self, os.path.join(directory, "hsmtool")) |
| 1108 | assert hasattr(self, "env") |
| 1109 | self.cmd_line = ["tools/hsmtool", *args] |
| 1110 | |
| 1111 | |
| 1112 | @unittest.skipIf(VALGRIND, "It does not play well with prompt and key derivation.") |
no outgoing calls