mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
poco: enable dns in ptest
NetSSL tests connect to secure.appinf.com and thus need to resolve DNS. 1 failure and 23 errors are fixed by this change making NetSSL-testrunner to pass. Such configuration is already used in oe-core oeqa maturin test. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# configure dns
|
||||
if ! nslookup secure.appinf.com >/dev/null 2>&1; then
|
||||
trap 'mv /etc/resolv.conf.backup /etc/resolv.conf' INT EXIT
|
||||
mv /etc/resolv.conf /etc/resolv.conf.backup
|
||||
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
|
||||
fi
|
||||
|
||||
export POCO_BASE=/usr/lib/poco/ptest
|
||||
export LD_LIBRARY_PATH=${POCO_BASE}/bin:${LD_LIBRARY_PATH}
|
||||
i=0
|
||||
|
||||
Reference in New Issue
Block a user