add conditional for running tests in check stage
This commit is contained in:
parent
d7b1fce307
commit
3746bb7a4d
@ -2,6 +2,7 @@
|
|||||||
%define groupname memcached
|
%define groupname memcached
|
||||||
%bcond_without sasl
|
%bcond_without sasl
|
||||||
%bcond_with seccomp
|
%bcond_with seccomp
|
||||||
|
%bcond_with tests
|
||||||
%global selinuxtype targeted
|
%global selinuxtype targeted
|
||||||
%global selinuxmoduletype contrib
|
%global selinuxmoduletype contrib
|
||||||
%global selinuxmodulename memcached
|
%global selinuxmodulename memcached
|
||||||
@ -76,8 +77,8 @@ make
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# disable testing as it is unreliable on build systems
|
# tests are disabled by default as they are unreliable on build systems
|
||||||
exit 0
|
%{!?with_tests: exit 0}
|
||||||
|
|
||||||
# whitespace tests fail locally on fedpkg systems now that they use git
|
# whitespace tests fail locally on fedpkg systems now that they use git
|
||||||
rm -f t/whitespace.t
|
rm -f t/whitespace.t
|
||||||
|
Loading…
Reference in New Issue
Block a user