From e685864182a6f91eefa0fd34b8e8f0419eb50463 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Wed, 9 May 2018 16:59:05 -0500 Subject: [PATCH] %check: use 'timeout 180' to avoid hanging tests --- qt5-qtscript.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qt5-qtscript.spec b/qt5-qtscript.spec index b2be5af..7ad7196 100644 --- a/qt5-qtscript.spec +++ b/qt5-qtscript.spec @@ -15,7 +15,7 @@ Summary: Qt5 - QtScript component Name: qt5-%{qt_module} Version: 5.10.1 -Release: 3%{?dist} +Release: 4%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -100,9 +100,14 @@ export PATH=%{buildroot}%{_qt5_bindir}:$PATH export LD_LIBRARY_PATH=%{buildroot}%{_qt5_libdir} ## do in %%build ? %make_build -k sub-tests-all ||: +timeout 180 \ xvfb-run -a \ time \ %make_build check -k -C tests ||: +if [ "$?" -eq "124" ]; then +echo 'make check timeout reached!' +exit 1 +fi %endif @@ -131,6 +136,9 @@ time \ %changelog +* Wed May 09 2018 Rex Dieter - 5.10.1-4 +- %%check: use 'timeout 180' to avoid hanging tests + * Mon Mar 05 2018 Rex Dieter - 5.10.1-3 - support %%bootstrap, %%check: add autotests - build with -O1 to workaround serious autotest/code failures (f28+, #1551246)