Fix AppVeyor problems

This commit is contained in:
Douglas Stebila 2019-08-01 20:20:59 -04:00
parent 34d33d0eba
commit 19f8e9994b
2 changed files with 5 additions and 1 deletions

View File

@ -38,4 +38,4 @@ after_test:
- ps: >-
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test-results\pytests\results.xml))
$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test-results\pytest\results.xml))

View File

@ -1,6 +1,7 @@
import helpers
import os
import pytest
import sys
@helpers.filtered_test
@pytest.mark.parametrize('program', ['example_kem', 'example_sig'])
@ -21,6 +22,9 @@ def test_kem(kem_name):
@pytest.mark.parametrize('sig_name', helpers.available_sigs_by_name())
def test_sig(sig_name):
if not(helpers.is_sig_enabled_by_name(sig_name)): pytest.skip('Not enabled')
if sys.platform.startswith("win") and 'APPVEYOR' in os.environ:
if 'SPHINCS' in sig_name and ('192f' in sig_name or '192s' in sig_name or '256f' in sig_name or '256s' in sig_name):
pytest.skip('Skipping SPHINCS+ 192s and 256s tests on Windows AppVeyor builds')
helpers.run_subprocess(
[helpers.path_to_executable('test_sig'), sig_name],
)