From b267ec301bdf224c6f23ce29f43b65a5f4167419 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 11 Jul 2016 11:54:31 +0200 Subject: [PATCH] tests: make chrt test more debug-able Signed-off-by: Karel Zak --- tests/run.sh | 5 +++++ tests/ts/schedutils/chrt | 7 +++++++ 2 files changed, 12 insertions(+) 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 -- 2.47.3