debian-forge-composer/test/cases
Ondřej Budai e7b3063f7e test: properly kill journalctl
sudo journalctl -af -n 1 -u "${WORKER_UNIT}" &
WORKER_JOURNAL_PID=$!

In this snippet, WORKER_JOURNAL_PID is set to the PID of the sudo process.
Sudo doesn't propagate any signals - therefore the child process of sudo
(journalctl in this case) isn't killed when a signal is sent to the parent.

Use pkill -P instead which kills all processes where sudo is the parent.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-04-14 09:18:06 +02:00
..
api.sh Rename all occurrences of "Compute Node" to "Compute Engine" 2021-04-01 20:12:39 +02:00
aws.sh test: properly kill journalctl 2021-04-14 09:18:06 +02:00
base_tests.sh base_tests.sh: make the test self-contained 2020-11-10 10:44:13 +00:00
image_tests.sh test: use DISTRO_CODE to select tests case 2021-03-26 14:05:20 +00:00
koji.sh test: use DISTRO_CODE to select tests case 2021-03-26 14:05:20 +00:00
libvirt.sh test: use DISTRO_CODE to select tests case 2021-03-26 14:05:20 +00:00
ostree-ng.sh test: properly kill journalctl 2021-04-14 09:18:06 +02:00
ostree.sh test: properly kill journalctl 2021-04-14 09:18:06 +02:00
vmware.sh test: properly kill journalctl 2021-04-14 09:18:06 +02:00