Improve skipping for duplicate_consistency test
This commit is contained in:
parent
7a4e0d445b
commit
ad4984fdad
@ -5,7 +5,7 @@ Checks that files duplicated across schemes/implementations are consistent.
|
||||
import os
|
||||
import pqclean
|
||||
import helpers
|
||||
|
||||
import unittest
|
||||
|
||||
def test_duplicate_consistency():
|
||||
for scheme in pqclean.Scheme.all_schemes():
|
||||
@ -18,8 +18,9 @@ def file_get_contents(filename):
|
||||
return f.read()
|
||||
|
||||
def check_duplicate_consistency(implementation):
|
||||
helpers.ensure_available('sed')
|
||||
if 'duplicate-consistency' in implementation.metadata():
|
||||
helpers.skip_windows()
|
||||
if not('duplicate-consistency' in implementation.metadata()):
|
||||
raise unittest.SkipTest('No duplicate consistency requirements defined')
|
||||
dc = implementation.metadata()['duplicate-consistency']
|
||||
for pairs in dc['files']:
|
||||
transformed_src = helpers.run_subprocess(
|
||||
|
Loading…
Reference in New Issue
Block a user