summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2016-07-11 11:54:31 +0200
committerKarel Zak2016-07-11 11:54:31 +0200
commitb267ec301bdf224c6f23ce29f43b65a5f4167419 (patch)
tree76666fa25f974d91b3788d32f95e562832dbf1d1
parenttests: mark chrt tests as root-only (diff)
downloadkernel-qcow2-util-linux-b267ec301bdf224c6f23ce29f43b65a5f4167419.tar.gz
kernel-qcow2-util-linux-b267ec301bdf224c6f23ce29f43b65a5f4167419.tar.xz
kernel-qcow2-util-linux-b267ec301bdf224c6f23ce29f43b65a5f4167419.zip
tests: make chrt test more debug-able
Signed-off-by: Karel Zak <kzak@redhat.com>
-rwxr-xr-xtests/run.sh5
-rwxr-xr-xtests/ts/schedutils/chrt7
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh
index aad3acb0d..d72fdfcc1 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 203d06a9b..8b2cbfc28 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