From c28d6696591657257dce1a5f5e2af2df5175b519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 19 Jul 2017 18:06:21 +0000 Subject: [PATCH] skip test on fedory and friends OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build?expand=0&rev=312 --- build.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.spec b/build.spec index 251d8ba..c46768c 100644 --- a/build.spec +++ b/build.spec @@ -156,6 +156,10 @@ if [ `whoami` != "root" ]; then echo "WARNING: Not building as root, tests did not run!" exit 0 fi +if [ ! -f "$RPM_BUILD_ROOT/usr/lib/build/configs/default.conf" ]; then + echo "WARNING: No default config, tests did not run!" + exit 0 +fi # get back the default.conf link cp -av $RPM_BUILD_ROOT/usr/lib/build/configs/default.conf configs/ # do not get confused when building this already with build: