[Cryptech-Commits] [sw/libhal] 03/03: Add --io-log option to unit-tests.py.
git at cryptech.is
git at cryptech.is
Sat Mar 4 19:39:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch pymux
in repository sw/libhal.
commit 89e84c71f760203a350dd51cad100c425dc3a1c3
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sat Mar 4 14:39:13 2017 -0500
Add --io-log option to unit-tests.py.
---
unit-tests.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/unit-tests.py b/unit-tests.py
index c1d0d44..e8743ed 100644
--- a/unit-tests.py
+++ b/unit-tests.py
@@ -83,6 +83,7 @@ def parse_arguments(argv = ()):
parser = ArgumentParser(description = __doc__, formatter_class = ArgumentDefaultsHelpFormatter)
parser.add_argument("--quiet", action = "store_true", help = "suppress chatter")
parser.add_argument("--debug", action = "store_true", help = "debug-level logging")
+ parser.add_argument("--io-log", action = "store_true", help = "log HSM I/O stream")
parser.add_argument("--wheel-pin", default = "fnord", help = "PIN for wheel user")
parser.add_argument("--so-pin", default = "fnord", help = "PIN for security officer")
parser.add_argument("--user-pin", default = "fnord", help = "PIN for normal user")
@@ -99,6 +100,7 @@ pin_map = { HAL_USER_NORMAL : "user_pin", HAL_USER_SO : "so_pin", HAL_USER_WHEEL
def setUpModule():
global hsm
hsm = HSM()
+ hsm.debug_io = args.io_log
def tearDownModule():
hsm.logout()
More information about the Commits
mailing list