Do the horrible hostname check _before_ faking it

This commit is contained in:
Nalin Dahyabhai 2013-08-15 01:50:42 -04:00
parent ee18500d9b
commit 6c46043c16

View File

@ -457,6 +457,13 @@ popd
%{__cc} -fPIC -shared -o noport.so -Wall -Wextra $RPM_SOURCE_DIR/noport.c %{__cc} -fPIC -shared -o noport.so -Wall -Wextra $RPM_SOURCE_DIR/noport.c
%check %check
# Alright, this much is still a work in progress.
%if %{?__isa_bits:%{__isa_bits}}%{!?__isa_bits:32} == 64
if hostname | grep -q build ; then
sleep 600
fi
%endif
# Set things up to use the test wrappers. # Set things up to use the test wrappers.
NSS_WRAPPER_HOSTNAME=test.example.com ; export NSS_WRAPPER_HOSTNAME NSS_WRAPPER_HOSTNAME=test.example.com ; export NSS_WRAPPER_HOSTNAME
NSS_WRAPPER_HOSTS="`pwd`/nss_wrapper/fakehosts" ; export NSS_WRAPPER_HOSTS NSS_WRAPPER_HOSTS="`pwd`/nss_wrapper/fakehosts" ; export NSS_WRAPPER_HOSTS
@ -468,12 +475,6 @@ LD_PRELOAD=`pwd`/noport.so:`pwd`/nss_wrapper/build/src/libnss_wrapper.so ; expor
# system, but we can at least run more than we used to. # system, but we can at least run more than we used to.
make -C src runenv.py make -C src runenv.py
: make -C src check TMPDIR=%{_tmppath} : make -C src check TMPDIR=%{_tmppath}
# Alright, this much is still a work in progress.
%if %{?__isa_bits:%{__isa_bits}}%{!?__isa_bits:32} == 64
if hostname | grep -q build ; then
sleep 600
fi
%endif
make -C src/lib check TMPDIR=%{_tmppath} OFFLINE=yes make -C src/lib check TMPDIR=%{_tmppath} OFFLINE=yes
make -C src/kdc check TMPDIR=%{_tmppath} make -C src/kdc check TMPDIR=%{_tmppath}
make -C src/appl check TMPDIR=%{_tmppath} make -C src/appl check TMPDIR=%{_tmppath}