From ab447c12bb71f059518fb1665e090f76107c40e4 Mon Sep 17 00:00:00 2001 From: zhuofeng Date: Fri, 23 Dec 2022 01:22:45 +0000 Subject: [PATCH] make the test check Signed-off-by: zhuofeng (cherry picked from commit d8aa74103cbf20956b5e04eaaeb3e4e7f66c6f51) --- pyxattr.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pyxattr.spec b/pyxattr.spec index b2ec168..c1191f9 100644 --- a/pyxattr.spec +++ b/pyxattr.spec @@ -1,12 +1,12 @@ Name: pyxattr Summary: Extended attributes library wrapper for Python Version: 0.7.2 -Release: 3 +Release: 4 License: LGPLv2+ URL: http://pyxattr.k1024.org/ Source: https://pyxattr.k1024.org/downloads/%{name}-%{version}.tar.gz -BuildRequires: gcc libattr-devel python3-devel python3-setuptools +BuildRequires: gcc libattr-devel python3-devel python3-setuptools python3-pytest %description This is the pyxattr module, a Python extension module which gives access to @@ -33,9 +33,9 @@ cp -a . %{py3dir} %py3_install %check -#pushd %%{py3dir} -#%%{__python3} setup.py test -#popd +export TEST_IGNORE_XATTRS=security.selinux +export PYTHONPATH=%{buildroot}%{python3_sitearch} +%{__python3} -m pytest -v %files -n python3-%{name} %{python3_sitearch}/*.so @@ -45,6 +45,12 @@ cp -a . %{py3dir} %doc NEWS README.md %changelog +* Fri Dec 23 2022 zhuofeng - 0.7.2-4 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:make the test check + * Wed Oct 26 2022 zhuofeng - 0.7.2-3 - rebuild for next release -- Gitee