Skip to content

Commit

Permalink
Run tests in verbose mode and with timeout (travis)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dwrobel committed Dec 12, 2023
1 parent af35f0e commit 3621894
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/travis-build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 3621894

Please sign in to comment.