From 3746bb7a4d01d59472fc4bceddae76fba0d117c7 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 1 Aug 2018 10:54:15 +0200 Subject: [PATCH] add conditional for running tests in check stage --- memcached.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/memcached.spec b/memcached.spec index 4d5e3a6..0965284 100644 --- a/memcached.spec +++ b/memcached.spec @@ -2,6 +2,7 @@ %define groupname memcached %bcond_without sasl %bcond_with seccomp +%bcond_with tests %global selinuxtype targeted %global selinuxmoduletype contrib %global selinuxmodulename memcached @@ -76,8 +77,8 @@ make popd %check -# disable testing as it is unreliable on build systems -exit 0 +# tests are disabled by default as they are unreliable on build systems +%{!?with_tests: exit 0} # whitespace tests fail locally on fedpkg systems now that they use git rm -f t/whitespace.t