瀏覽代碼

Fix isolation in test_metadata_sizes (#258)

master
Thom Wiggers 5 年之前
committed by Matthias J. Kannwischer
父節點
當前提交
770a421c16
共有 1 個文件被更改,包括 9 次插入8 次删除
  1. +9
    -8
      test/test_metadata_sizes.py

+ 9
- 8
test/test_metadata_sizes.py 查看文件

@@ -17,21 +17,22 @@ import pqclean
def test_metadata_sizes(implementation, impl_path, test_dir, init, destr):
init()
metadata = implementation.scheme.metadata()
dest_dir = os.path.join(test_dir, 'bin')
helpers.make('printparams',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
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(
[os.path.join('..', 'bin', 'printparams_{}_{}{}'.format(
implementation.scheme.name,
implementation.name,
'.exe' if os.name == 'nt' else ''
))],
os.path.join('..', 'bin'),
).replace('\r', '')
[os.path.join(dest_dir, 'printparams_{}_{}{}'.format(
implementation.scheme.name,
implementation.name,
'.exe' if os.name == 'nt' else ''
))]
).replace('\r', '')

parsed = json.loads(out)



Loading…
取消
儲存