From 0b69b970b3a8990bc26a7a856933cf3a136b172c Mon Sep 17 00:00:00 2001 From: Damian Wrobel Date: Mon, 8 Jun 2020 20:30:37 +0200 Subject: [PATCH] Run tests in verbose mode and with timeout (github) Also print out both linuxcnc_debug.txt and linuxcnc_print.txt in case of failure. Signed-off-by: Damian Wrobel --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4bbb768777..3e9a80b4660 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,11 @@ jobs: eatmydata ./configure --with-realtime=uspace --disable-check-runtime-deps eatmydata make -O -j$((1+$(nproc))) default pycheck V=1 # Note that the package build covers html docs - eatmydata ../scripts/rip-environment runtests -p + sudo setcap cap_ipc_lock,cap_net_admin,cap_sys_rawio,cap_sys_nice+ep ../bin/rtapi_app + timeout --signal=9 3600 ../scripts/rip-environment runtests -vp || \ + ([ -e ~/linuxcnc_debug.txt ] && (echo linuxcnc_debug.txt; cat ~/linuxcnc_debug.txt); \ + [ -e ~/linuxcnc_print.txt ] && (echo linuxcnc_print.txt; cat ~/linuxcnc_print.txt); \ + false) rip-and-test-clang: runs-on: ubuntu-20.04