From: Karel Zak Date: Mon, 11 Jul 2016 09:54:31 +0000 (+0200) Subject: tests: make chrt test more debug-able X-Git-Tag: v2.29-rc1~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b267ec301bdf224c6f23ce29f43b65a5f4167419;p=thirdparty%2Futil-linux.git tests: make chrt test more debug-able Signed-off-by: Karel Zak --- diff --git a/tests/run.sh b/tests/run.sh index aad3acb0dd..d72fdfcc12 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -160,6 +160,11 @@ echo " For development purpose only. " echo " Don't execute on production system! " echo +# TODO: add more information about system +printf "%13s: %-30s " "kernel" "$(uname -r)" +echo +echo + if [ $paraller_jobs -gt 1 ]; then echo " Executing the tests in parallel ($paraller_jobs jobs) " echo diff --git a/tests/ts/schedutils/chrt b/tests/ts/schedutils/chrt index 203d06a9be..8b2cbfc280 100755 --- a/tests/ts/schedutils/chrt +++ b/tests/ts/schedutils/chrt @@ -97,4 +97,11 @@ if [ $? == 0 ]; then ts_finalize_subtest fi +# failed -- let's report kernel limits +# +if [ $TS_NSUBFAILED -ne 0 ]; then + echo "Supported policies:" + $TS_CMD_CHRT --max +fi + ts_finalize