projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: tests: skip tests on static build
[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 7fb37edfeb1ff67a4dada6711384ac6c6a1a5b6d..7dc21681fd26deb291e10724f8a68fd6d368bf25 100755
(executable)
--- a/
tests/regression/ust/test_event_perf
+++ b/
tests/regression/ust/test_event_perf
@@
-90,8
+90,17
@@
plan_tests $NUM_TESTS
print_test_banner "$TEST_DESC"
print_test_banner "$TEST_DESC"
-start_lttng_sessiond
+if [ "$(id -u)" == "0" ]; then
+ isroot=1
+else
+ isroot=0
+fi
+
+skip $isroot "Root access is needed. Skipping UST perf tests." ${NUM_TESTS} ||
+{
+ start_lttng_sessiond
-test_event_basic
+
test_event_basic
-stop_lttng_sessiond
+ stop_lttng_sessiond
+}
This page took
0.024114 seconds
and
4
git commands to generate.