bcond to avoid tests in py builds

From PryMar56, 1 Year ago, written in Plain Text, viewed 239 times. This paste will hop the perch in 1 Second.
URL https://pb.dynavirt.com/view/bca85fbc Embed
Download Paste or View Raw
  1. diff --git a/fedmsg.spec b/fedmsg.spec
  2. index 9af18c0..ef8a30a 100644
  3. --- a/fedmsg.spec
  4. +++ b/fedmsg.spec
  5. @@ -1,4 +1,5 @@
  6.  %global modname fedmsg
  7. +%bcond_without check
  8.  
  9.  Name:           fedmsg
  10.  Version:        1.1.2
  11. @@ -102,7 +103,10 @@ rm doc/_build/html/.buildinfo
  12.  
  13.  
  14.  %check
  15. +%if %{with check}
  16.  PYTHONPATH=$(pwd) py.test-3 fedmsg
  17. +%endif
  18. +
  19.  
  20.  # Remove compiled .py files from config caused by the tests reading the config
  21.  rm -f %{buildroot}%{_sysconfdir}/fedmsg.d/*.py{c,o}

Reply to "bcond to avoid tests in py builds"

Here you can reply to the paste above

captcha