projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: test flaky sleep and wait patterns
[lttng-tools.git]
/
tests
/
regression
/
ust
/
python-logging
/
test_python_logging
diff --git
a/tests/regression/ust/python-logging/test_python_logging
b/tests/regression/ust/python-logging/test_python_logging
index b2fa6fb76f69e1560c173701dde7438bc113268d..cb960daa86d172cdbe931447a9013d0cb06f93d8 100755
(executable)
--- a/
tests/regression/ust/python-logging/test_python_logging
+++ b/
tests/regression/ust/python-logging/test_python_logging
@@
-99,7
+99,7
@@
function test_python_before_start ()
start_lttng_tracing $SESSION_NAME
# Wait for the applications started in background
start_lttng_tracing $SESSION_NAME
# Wait for the applications started in background
- wait
${!}
+ wait
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
@@
-403,7
+403,8
@@
function test_python_destroy_session()
# Run 5 times with a 1 second delay
run_app_background 0 1
# Run 5 times with a 1 second delay
run_app_background 0 1
- sleep 1
+ # Wait for the applications started in background
+ wait
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
@@
-418,8
+419,11
@@
function test_python_destroy_session()
enable_python_lttng_event $SESSION_NAME $EVENT_NAME2
start_lttng_tracing $SESSION_NAME
enable_python_lttng_event $SESSION_NAME $EVENT_NAME2
start_lttng_tracing $SESSION_NAME
+ # Run 5 times with a 1 second delay
+ run_app_background 0 1
+
# Wait for the applications started in background
# Wait for the applications started in background
- wait
${!}
+ wait
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
This page took
0.023439 seconds
and
4
git commands to generate.