diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-07-15 15:21:28 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-07-22 19:41:42 +0200 |
commit | 92b341f8d28eceb350a4aa83c970dbbd844012da (patch) | |
tree | b363148d540a461eac8903dfbc47eef0cb8f38b5 /test/passt.mbuto | |
parent | 66ec4416084b189aba8cf44f2f087573d9676a4e (diff) | |
download | passt-92b341f8d28eceb350a4aa83c970dbbd844012da.tar passt-92b341f8d28eceb350a4aa83c970dbbd844012da.tar.gz passt-92b341f8d28eceb350a4aa83c970dbbd844012da.tar.bz2 passt-92b341f8d28eceb350a4aa83c970dbbd844012da.tar.lz passt-92b341f8d28eceb350a4aa83c970dbbd844012da.tar.xz passt-92b341f8d28eceb350a4aa83c970dbbd844012da.tar.zst passt-92b341f8d28eceb350a4aa83c970dbbd844012da.zip |
tests: More robust parsing of resolv.conf for DHCP tests
To check publishing of DNS information via DHCP, we need to extract a list
of nameservers and/or search domains from resolv.conf in the test script.
The current version (usually) leaves the result with a trailing ','.
That's usually ok because it happens on both guest and host sides. However
it's kind of confusing, and might stop working if the host had a
resolv.conf without a trailing \n on the last line. It also makes some
later changes we'll need more difficult.
So, normalize the output from resolv.conf a bit further, removing any
trailing ','. It turns out we can do this with a slightly less complex
sed expression than the one we already have.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/passt.mbuto')
0 files changed, 0 insertions, 0 deletions