From 0ab8bf8d09963bbdd3b1eaeb10d011f9d0b31044 Mon Sep 17 00:00:00 2001 From: OBS User adrianSuSE Date: Wed, 19 Jul 2017 18:06:21 +0000 Subject: [PATCH] skip test on fedory and friends Rev openSUSE:Tools/312 Md5 3caac58ddf1b1974941c6c77b659f160 2017-07-19 18:06:21 adrianSuSE None --- build.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.spec b/build.spec index 251d8ba0..c46768cc 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: