diff --git a/python-pysaml2.spec b/python-pysaml2.spec index 92c2b0d..09f1d7a 100644 --- a/python-pysaml2.spec +++ b/python-pysaml2.spec @@ -89,11 +89,10 @@ done %check # Excluded tests for i586 gh#IdentityPython/pysaml2#682 %ifarch %{ix86} -SKIP_TESTS="-k not (test_assertion_consumer_service or test_swamid_sp or test_swamid_idp or test_other_response or test_mta or test_unknown_subject)" +%pytest -k "not (test_assertion_consumer_service or test_swamid_sp or test_swamid_idp or test_other_response or test_mta or test_unknown_subject)" tests %else -SKIP_TESTS="" +%pytest tests %endif -%pytest $SKIP_TESTS tests %post %python_install_alternative make_metadata.py parse_xsd2.py mdexport.py merge_metadata.py