From 7fc415a0cd6f6504e0fefb6f960dd4cbc7fbf047 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 11 Oct 2022 06:31:39 +0200 Subject: testsuite/suite_driver.sh: disp log in case of failure --- testsuite/suite_driver.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/suite_driver.sh b/testsuite/suite_driver.sh index 6b3df39fa..1e9db3d26 100755 --- a/testsuite/suite_driver.sh +++ b/testsuite/suite_driver.sh @@ -36,7 +36,7 @@ parse_cmdline () { esac done - NPROC=${NPROC:-$(nproc 2> /dev/null || echo 1)} + NPROC=${NPROC:-$(nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1)} } singlerun() { @@ -48,6 +48,7 @@ singlerun() { printf "$_suite $1: ${ANSI_RED}failed${ANSI_NOCOLOR}\n" printf '%s ' "$1" >> ../failures.log if [ x"$2" = x"n" ]; then + cat test.log exit 1; fi fi -- cgit v1.2.3