diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-07-15 15:21:40 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-07-30 21:57:14 +0200 |
commit | 3eaf9f532021326a47f70046b05854d8b1819825 (patch) | |
tree | 4510865d4f91852c76454fa6d35078c3c92347ea /test/build/cppcheck | |
parent | 4b2e018d70f33d1e337b039d620823a020711ba5 (diff) | |
download | passt-3eaf9f532021326a47f70046b05854d8b1819825.tar passt-3eaf9f532021326a47f70046b05854d8b1819825.tar.gz passt-3eaf9f532021326a47f70046b05854d8b1819825.tar.bz2 passt-3eaf9f532021326a47f70046b05854d8b1819825.tar.lz passt-3eaf9f532021326a47f70046b05854d8b1819825.tar.xz passt-3eaf9f532021326a47f70046b05854d8b1819825.tar.zst passt-3eaf9f532021326a47f70046b05854d8b1819825.zip |
tests: Correct determination of host interface name in tests
By default, passt itself attaches to the first host interface with a
default route. However, when determining the host interface name the tests
implicitly select the *last* host interface: they use a jq expression which
will list all interfaces with default routes, but the way output detection
works in the scripts, it will only pick up the last line.
If there are multiple interfaces with default routes on the host, and they
each have a different address, this can cause spurious test failures.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/build/cppcheck')
0 files changed, 0 insertions, 0 deletions