tests: tools/clear/test_ust wait for specific test app pid
authorKienan Stewart <kstewart@efficios.com>
Tue, 19 Dec 2023 19:01:47 +0000 (14:01 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Mar 2024 18:26:33 +0000 (14:26 -0400)
commitf03ea3f43450abb1a1ea704044e1e8c78cfc0b4c
treeccc0f85021145e7a2d4ca3d3c39fcac422c90db7
parent283c6fa6cc573166ec4e41b70a9db57f8356f4aa
tests: tools/clear/test_ust wait for specific test app pid

Observed issue
==============

When debugging failing tests manually, one step that is sometimes done
is to quickly swap the commands that start the relay or sessiond in
`tests/utils/utils.sh` (eg. in `start_lttng_relayd_opt`) for the version
which uses a verbose output to a logfile.

When doing this, the `relayd` wasn't using the background
`process_mode`, and was a child of the running test.

This caused `test_ust_local_snapshot_per_pid` in
`tests/regression/tools/clear/test_ust` to hang as it waited for all
child processes to terminate.

Solution
========

The test has been updated to wait for only the specific test application
pid.

Known drawbacks
===============

None.

Change-Id: I8761649a52fceda92a5545c71818dc2eb027bfcf
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/clear/test_ust
tests/utils/utils.sh
This page took 0.025473 seconds and 4 git commands to generate.