Skip to content
Snippets Groups Projects
Commit 618517fd authored by Philip Withnall's avatar Philip Withnall Committed by Sjoerd Simons
Browse files

traffic-control: Clean up tcmmd process on test failure

If the manual run-tcmmd-test fails because the user replies ‘no’ to any
of the questions, it doesn’t clean up its tcmmd process. This causes an
immediate failure of the test if it’s run again. Fix that by always
cleaning up tcmmd.

Differential Revision: https://phabricator.apertis.org/D427


Signed-off-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
parent cb777a0c
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,7 @@ check_decent_speed() {
check_tcmmd() {
sudo $TCMMD -i $NET_INTERFACE &>/dev/null &
TCMMD_PID=$!
ROOT_PROC_KILL_LIST+=($TCMMD_PID)
sleep 0.5
if ! sudo kill -s 0 $TCMMD_PID &> /dev/null ; then
return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment