aboutgitcodebugslistschat
path: root/test/two_guests
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-07-15 15:21:28 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-07-22 19:41:42 +0200
commit92b341f8d28eceb350a4aa83c970dbbd844012da (patch)
treeb363148d540a461eac8903dfbc47eef0cb8f38b5 /test/two_guests
parent66ec4416084b189aba8cf44f2f087573d9676a4e (diff)
downloadpasst-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/two_guests')
0 files changed, 0 insertions, 0 deletions