From 0b8690b58795ce6317d14278dbb9ee91b34065a5 Mon Sep 17 00:00:00 2001 From: Fiona Klute Date: Thu, 17 Oct 2024 00:59:06 +0200 Subject: [PATCH] Support exporting SoftHSM test environment definitions Useful for manual testing and similar experiments. ^.^ --- test/mgstest/softhsm.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/mgstest/softhsm.py b/test/mgstest/softhsm.py index 4d77448..bd5c7da 100644 --- a/test/mgstest/softhsm.py +++ b/test/mgstest/softhsm.py @@ -220,3 +220,10 @@ def tmp_softhsm_conf(db): Path(conf.name).unlink() raise return conf.name + + +if __name__ == '__main__': + import shlex + t = Token(os.environ['SOFTHSM2_CONF']) + for k, v in t.test_env.items(): + print(f'{k}={shlex.quote(v)}')