summaryrefslogtreecommitdiffstats
path: root/tests/ts/schedutils
diff options
context:
space:
mode:
authorKarel Zak2016-07-11 11:12:47 +0200
committerKarel Zak2016-07-11 11:12:47 +0200
commit77604e87f3830f17164a512412b0e0eae332277c (patch)
treefde92bd39616e4d13afced39565a367947c4862f /tests/ts/schedutils
parenttests: implement ts_skip_subtest (diff)
downloadkernel-qcow2-util-linux-77604e87f3830f17164a512412b0e0eae332277c.tar.gz
kernel-qcow2-util-linux-77604e87f3830f17164a512412b0e0eae332277c.tar.xz
kernel-qcow2-util-linux-77604e87f3830f17164a512412b0e0eae332277c.zip
tests: mark chrt tests as root-only
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/schedutils')
-rwxr-xr-xtests/ts/schedutils/chrt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ts/schedutils/chrt b/tests/ts/schedutils/chrt
index 38c87f9f0..203d06a9b 100755
--- a/tests/ts/schedutils/chrt
+++ b/tests/ts/schedutils/chrt
@@ -20,6 +20,7 @@ TS_DESC="chrt"
ts_init "$*"
ts_check_test_command "$TS_CMD_CHRT"
+ts_skip_nonroot
function do_chrt {
$TS_CMD_CHRT $* $TS_CMD_CHRT --pid 0 | sed 's/.* policy: //; s/.* priority: //' &>> $TS_OUTPUT