From 6cd5c4182ae7868d03422c0ffd5207624a2a5b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 13 May 2021 12:27:42 +0200 Subject: [PATCH] hitl: kill probe-run cleanly --- hitl/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hitl/run.sh b/hitl/run.sh index f3105cc..3eb3e35 100755 --- a/hitl/run.sh +++ b/hitl/run.sh @@ -9,7 +9,6 @@ # Enable shell operating mode flags. set -eux -trap "kill 0" EXIT # Set up python for testing python3 -m venv --system-site-packages py @@ -31,3 +30,6 @@ ping -c 5 -w 20 stabilizer-hitl python3 miniconf.py dt/sinara/dual-iir/04-91-62-d9-7e-5f afe/0='"G2"' python3 miniconf.py dt/sinara/dual-iir/04-91-62-d9-7e-5f afe/0='"G1"' iir_ch/0/0=\ '{"y_min": -32767, "y_max": 32767, "y_offset": 0, "ba": [1.0, 0, 0, 0, 0]}' + +kill $(jobs -p) +wait || true