projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add check_skip_kernel_test to check root user and lttng kernel modules
[lttng-tools.git]
/
tests
/
regression
/
tools
/
streaming
/
test_high_throughput_limits
diff --git
a/tests/regression/tools/streaming/test_high_throughput_limits
b/tests/regression/tools/streaming/test_high_throughput_limits
index 50c21df4d14cfcdcc8bb62d130dd3eae1bef5e71..91ab2fe7b25e945d77eb4f6ba725a03eeea55aa4 100755
(executable)
--- a/
tests/regression/tools/streaming/test_high_throughput_limits
+++ b/
tests/regression/tools/streaming/test_high_throughput_limits
@@
-174,13
+174,7
@@
print_test_banner "$TEST_DESC"
bail_out_if_no_babeltrace
bail_out_if_no_babeltrace
-if [ "$(id -u)" == "0" ]; then
- isroot=1
-else
- isroot=0
-fi
-
-skip $isroot "Root access is needed to set bandwith limits. Skipping all tests." $NUM_TESTS ||
+check_skip_kernel_test "$NUM_TESTS" "Skipping all tests." ||
{
# Catch sigint and try to cleanup limits
{
# Catch sigint and try to cleanup limits
This page took
0.023499 seconds
and
4
git commands to generate.