From a4b75e3cbee233d39dd27a0490bbad1f37cba2cd Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Sat, 21 Jun 2014 14:35:07 -0400 Subject: [PATCH] Run upstream tests during build. --- python-yubico.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python-yubico.spec b/python-yubico.spec index 58699ea..31cb429 100644 --- a/python-yubico.spec +++ b/python-yubico.spec @@ -1,6 +1,6 @@ Name: python-yubico Version: 1.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pure-python library for interacting with Yubikeys License: BSD @@ -10,6 +10,7 @@ Source0: https://github.com/Yubico/python-yubico/archive/%{name}-%{versio BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools +BuildRequires: python-nose Requires: pyusb %description @@ -31,7 +32,13 @@ Pure-python library for interacting with Yubikeys %doc COPYING NEWS README %{python2_sitelib}/* +%check +# Exclude tests that require a physical yubikey attached. +nosetests -e test_challenge_response -e test_serial -e test_status %changelog +* Sat Jun 21 2014 Nathaniel McCallum - 1.2.1-2 +- Run upstream tests during build. + * Thu Jun 19 2014 Nathaniel McCallum - 1.2.1-1 - Initial release.