selftests: net: tsn_lib: don't overwrite isochron receiver extra args with UDS
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 23 Sep 2022 21:00:12 +0000 (00:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 20:22:00 +0000 (13:22 -0700)
The extra_args argument ($3) of isochron_recv_start is overwritten with
uds ($2), if that argument exists.

This is currently not a problem, because the only TSN selftest
(ocelot/psfp.sh) omits remote sync so it does not specify to the
receiver a UNIX domain socket for ptp4l. So $uds is currently an empty
string.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/tsn_lib.sh

index 60a1423..1c8e36c 100644 (file)
@@ -139,7 +139,7 @@ isochron_recv_start()
        local extra_args=$3
 
        if ! [ -z "${uds}" ]; then
-               extra_args="--unix-domain-socket ${uds}"
+               extra_args="${extra_args} --unix-domain-socket ${uds}"
        fi
 
        isochron rcv \