tests optional on non-suse
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build?expand=0&rev=256
This commit is contained in:
parent
c3b9be877b
commit
5d77188db8
@ -151,6 +151,15 @@ if [ `whoami` != "root" ]; then
|
|||||||
echo "WARNING: Not building as root, tests did not run!"
|
echo "WARNING: Not building as root, tests did not run!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
# get back the default.conf link
|
||||||
cp -av $RPM_BUILD_ROOT/usr/lib/build/configs/default.conf configs/
|
cp -av $RPM_BUILD_ROOT/usr/lib/build/configs/default.conf configs/
|
||||||
# do not get confused when building this already with build:
|
# do not get confused when building this already with build:
|
||||||
|
Loading…
Reference in New Issue
Block a user