From 362189482e71f901f727f965848edd0f516076b7 Mon Sep 17 00:00:00 2001 From: Damian Wrobel Date: Sat, 23 May 2020 12:21:00 +0200 Subject: [PATCH] Run tests in verbose mode and with timeout (travis) The verbose mode is not switched on Travis CI as this exceeds the maximum log length whic in turn terminates the build. Also print out both linuxcnc_debug.txt and linuxcnc_print.txt in case of failure. Signed-off-by: Damian Wrobel --- scripts/travis-build-test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/travis-build-test.sh b/scripts/travis-build-test.sh index 814cd565121..09a74691d5e 100755 --- a/scripts/travis-build-test.sh +++ b/scripts/travis-build-test.sh @@ -5,4 +5,7 @@ cd src make -O -j$(getconf _NPROCESSORS_ONLN) manpages V=1 make -O -j$(getconf _NPROCESSORS_ONLN) translateddocs V=1 make -O -j$(getconf _NPROCESSORS_ONLN) default pycheck V=1 -../scripts/rip-environment runtests +sudo setcap cap_sys_rawio,cap_sys_nice+ep ../bin/rtapi_app +timeout --signal=9 3600 ../scripts/rip-environment runtests $([ -z ${TRAVIS} ] && echo '-v') || \ + ([ -e ~/linuxcnc_debug.txt ] && cat ~/linuxcnc_debug.txt; \ + [ -e ~/linuxcnc_print.txt ] && cat ~/linuxcnc_print.txt ;false)