]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: make chrt test more debug-able
authorKarel Zak <kzak@redhat.com>
Mon, 11 Jul 2016 09:54:31 +0000 (11:54 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Jul 2016 09:54:31 +0000 (11:54 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/run.sh
tests/ts/schedutils/chrt

index aad3acb0ddb927d281d3c437b25f36d656187cdb..d72fdfcc12cf9ed143d6513b5cede1774648c6e1 100755 (executable)
@@ -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
index 203d06a9bec1b43a17622f82b069c8117a360b59..8b2cbfc280bdb27716723a4e81155d77be5d294b 100755 (executable)
@@ -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