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
/
ust
/
test_event_perf
diff --git
a/tests/regression/ust/test_event_perf
b/tests/regression/ust/test_event_perf
index 01c137a19b23a3b3d72f32b11416d152e764822a..127cdb0b7f25304257567a7c26995ba127fbf54c 100755
(executable)
--- a/
tests/regression/ust/test_event_perf
+++ b/
tests/regression/ust/test_event_perf
@@
-56,7
+56,7
@@
function add_context_ust_skip_ok()
# Only test parsing of the enabling by raw ID
function test_parsing_raw()
{
# Only test parsing of the enabling by raw ID
function test_parsing_raw()
{
- TRACE_PATH=$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
+ TRACE_PATH=$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
SESSION_NAME="ust_event_basic"
CHAN_NAME="mychan"
SESSION_NAME="ust_event_basic"
CHAN_NAME="mychan"
@@
-84,7
+84,7
@@
function test_parsing_raw()
function test_event_basic()
{
function test_event_basic()
{
- TRACE_PATH=$(mktemp -
-tmpdir -d
"tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
+ TRACE_PATH=$(mktemp -
d -t
"tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
SESSION_NAME="ust_event_basic"
CHAN_NAME="mychan"
SESSION_NAME="ust_event_basic"
CHAN_NAME="mychan"
@@
-121,17
+121,11
@@
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
-
start_lttng_sessiond
test_parsing_raw
start_lttng_sessiond
test_parsing_raw
-
skip $isroot "Root access is needed. Skipping UST perf tests." 8
||
+
check_skip_kernel_test 8 "Skipping UST perf tests."
||
{
test_event_basic
}
{
test_event_basic
}
This page took
0.024159 seconds
and
4
git commands to generate.