mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
Fix isolation in test_metadata_sizes (#258)
This commit is contained in:
parent
e4e6ef930e
commit
a4e31f16a2
@ -17,21 +17,22 @@ import pqclean
|
|||||||
def test_metadata_sizes(implementation, impl_path, test_dir, init, destr):
|
def test_metadata_sizes(implementation, impl_path, test_dir, init, destr):
|
||||||
init()
|
init()
|
||||||
metadata = implementation.scheme.metadata()
|
metadata = implementation.scheme.metadata()
|
||||||
|
dest_dir = os.path.join(test_dir, 'bin')
|
||||||
helpers.make('printparams',
|
helpers.make('printparams',
|
||||||
TYPE=implementation.scheme.type,
|
TYPE=implementation.scheme.type,
|
||||||
SCHEME=implementation.scheme.name,
|
SCHEME=implementation.scheme.name,
|
||||||
IMPLEMENTATION=implementation.name,
|
IMPLEMENTATION=implementation.name,
|
||||||
SCHEME_DIR=impl_path,
|
SCHEME_DIR=impl_path,
|
||||||
working_dir=os.path.join('..', 'test'))
|
DEST_DIR=dest_dir,
|
||||||
|
working_dir=os.path.join(test_dir, 'test'))
|
||||||
|
|
||||||
out = helpers.run_subprocess(
|
out = helpers.run_subprocess(
|
||||||
[os.path.join('..', 'bin', 'printparams_{}_{}{}'.format(
|
[os.path.join(dest_dir, 'printparams_{}_{}{}'.format(
|
||||||
implementation.scheme.name,
|
implementation.scheme.name,
|
||||||
implementation.name,
|
implementation.name,
|
||||||
'.exe' if os.name == 'nt' else ''
|
'.exe' if os.name == 'nt' else ''
|
||||||
))],
|
))]
|
||||||
os.path.join('..', 'bin'),
|
).replace('\r', '')
|
||||||
).replace('\r', '')
|
|
||||||
|
|
||||||
parsed = json.loads(out)
|
parsed = json.loads(out)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user