tests optional on non-suse

Rev openSUSE:Tools/256 Md5 2308dd84e6a3ef66153c6050bb32aa56 2015-06-16 14:58:07 adrianSuSE None
This commit is contained in:
OBS User adrianSuSE 2015-06-16 14:58:07 +00:00 committed by Git OBS Bridge
parent ebed4e98ce
commit f7f0a44ac5

View File

@ -151,6 +151,15 @@ if [ `whoami` != "root" ]; then
echo "WARNING: Not building as root, tests did not run!"
exit 0
fi
if [ -e $RPM_BUILD_ROOT/usr/lib/build/configs/default.conf ]; then
%if 0%{?suse_version}
echo "ERROR: No default build conf, tests did not run!"
exit 1
%else
echo "WARNING: No default build conf, tests did not run!"
exit 0
%endif
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: