Do the horrible hostname check _before_ faking it
This commit is contained in:
parent
ee18500d9b
commit
6c46043c16
13
krb5.spec
13
krb5.spec
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user