On Wednesday, 31 July 2019 18.56.48 CEST Christian Boltz wrote:
Hello,
Am Mittwoch, 31. Juli 2019, 17:39:05 CEST schrieb Sean Marlow:
I'm attempting to add a conditional in spec for running tests in a package. The goal is to have an option to disable the tests in %check and conditionally removing the related build requirements. The example is a python package [1].
The conditional is "%bcond_without test" and the test requirements
are wrapped in an if clause like: I'll copy&paste a comment I added to apparmor.spec years ago:
# warning - confusing syntax ahead ;-) # bcond_with means "disable" # bcond_without means "enable"
So to disable the tests, you'll need %bcond_with test
Correct: Read "bcond_with" as "only define the following if set as build condition, which is not set by default. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org