aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/suite_driver.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/suite_driver.sh')
-rwxr-xr-xtestsuite/suite_driver.sh3
1 files changed, 2 insertions, 1 deletions
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