summaryrefslogtreecommitdiff
path: root/tests/chutney/stop-arti
blob: 6161b645ca2ead7f58bed3ab4c0c208d1e1d2c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
set -xeuo pipefail

cd "$(git rev-parse --show-toplevel)"

# Tell shellcheck that yes, we know that we're sourcing a file.
# shellcheck disable=SC1091
source tests/chutney/arti.run

# Tells shellcheck that these variables are set; exits early if they
# are not.
pid="${pid:?}"

kill -s INT "$pid"
# wait $pid, but $pid was started by a different process
tail --pid="$pid" -f /dev/null