%global __pytest_addopts or export PYTEST_ADDOPTS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For %{pytest} in Fedora there seem to be two possible ways to add
options eg for skipping tests, both working.

Either:

%global __pytest_addopts --options ...
(see attachment for example)

Or:

export PYTEST_ADDOPTS="--options ..."
(example: https://src.fedoraproject.org/rpms/scipy/blob/rawhide/f/scipy.spec#_228)

Is there a preferred way?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
nbdkit - Flexible, fast NBD server with plugins
https://gitlab.com/nbdkit/nbdkit
>From a0822f6feb94ccefd0c39797449d33eb88a2104f Mon Sep 17 00:00:00 2001
From: U2FsdGVkX1 <U2FsdGVkX1@xxxxxxxxx>
Date: Feb 20 2024 11:06:52 +0000
Subject: Add riscv64 support


---

diff --git a/python-astropy-healpix.spec b/python-astropy-healpix.spec
index 51939f0..f15e48f 100644
--- a/python-astropy-healpix.spec
+++ b/python-astropy-healpix.spec
@@ -4,7 +4,7 @@
 
 Name:           python-%{srcname}
 Version:        0.7
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        %{sum}
 
 License:        BSD
@@ -59,6 +59,12 @@ rm -r %{modname}.egg-info
 %py3_install
 
 %check
+%ifarch riscv64
+%global __pytest_addopts \
+    --deselect astropy_healpix/tests/test_healpy.py::test_pix2ang \
+    --deselect astropy_healpix/tests/test_healpy.py::test_pix2vec \
+    --deselect astropy_healpix/tests/test_healpy.py::test_ang2vec
+%endif
 %ifnarch s390x
 pushd %{buildroot}/%{python3_sitearch}
 %pytest %{modname}
@@ -76,6 +82,9 @@ rm -rf %{buildroot}%{python3_sitearch}/.pytest_cache
 %{python3_sitearch}/%{modname}*egg-info
 
 %changelog
+* Mon Jan 08 2024 Songsong Zhang <U2FsdGVkX1@xxxxxxxxx> - 0.7-6
+- Add riscv64 support
+
 * Fri Jul 21 2023 Fedora Release Engineering <releng@xxxxxxxxxxxxxxxxx> - 0.7-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
 

--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux