Skip to content

Commit

Permalink
Support exporting SoftHSM test environment definitions
Browse files Browse the repository at this point in the history
Useful for manual testing and similar experiments. ^.^
  • Loading branch information
airtower-luna committed Oct 16, 2024
1 parent 24d444d commit 0b8690b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/mgstest/softhsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}')

0 comments on commit 0b8690b

Please sign in to comment.