mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-27 01:41:40 +00:00
Merge pull request #274 from PQClean/fix_detecting_changes
Fix detecting of to-be-tested changes on Windows
This commit is contained in:
commit
07f96fa057
@ -245,6 +245,8 @@ def permit_test(testname, *args, **kwargs):
|
|||||||
assert diff_result.returncode == 0, \
|
assert diff_result.returncode == 0, \
|
||||||
"Got unexpected return code {}".format(diff_result.returncode)
|
"Got unexpected return code {}".format(diff_result.returncode)
|
||||||
for diff_line in diff_result.stdout.decode('utf-8').splitlines():
|
for diff_line in diff_result.stdout.decode('utf-8').splitlines():
|
||||||
|
# Git still returns UNIX-style paths on Windows, normalize
|
||||||
|
diff_line = os.path.normpath(diff_line)
|
||||||
# don't skip test if there are any changes outside schemes
|
# don't skip test if there are any changes outside schemes
|
||||||
if (not diff_line.startswith('crypto_kem') and
|
if (not diff_line.startswith('crypto_kem') and
|
||||||
not diff_line.startswith('crypto_sign') and
|
not diff_line.startswith('crypto_sign') and
|
||||||
|
Loading…
Reference in New Issue
Block a user