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

traffic-control: Obey $NET_INTERFACE in traffic-control-tcdemo test

Don’t hard-code the traffic controlled interface to eth0, or the
traffic-control-tcdemo test will fail on devices where eth0 is not the
main network interface.

Bug: https://bugs.apertis.org/show_bug.cgi?id=328
Differential Revision: https://phabricator.apertis.org/D431


Signed-off-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Reviewed-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
parent fac25875
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ test_tcdemo() {
local ret server_pid port="9000"
## Setup ##
sudo $TCMMD --save-stats=$TCMMD_LOG.$tc.$background -i eth0 >> $TCMMD_LOG 2>&1 &
sudo $TCMMD --save-stats=$TCMMD_LOG.$tc.$background -i $NET_INTERFACE >> $TCMMD_LOG 2>&1 &
TCMMD_PID=$!
ROOT_PROC_KILL_LIST+=($TCMMD_PID)
......
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