mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-12 03:24:08 +00:00
A number of tests require internet access - set a valid DNS in resolv.conf so the tests don't fail. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 lines
243 B
Bash
12 lines
243 B
Bash
#!/bin/sh
|
|
|
|
|
|
|
|
if ! nslookup httpbin.org >/dev/null 2>&1 ; then
|
|
trap 'mv /etc/resolv.conf.bak /etc/resolv.conf' INT EXIT
|
|
mv /etc/resolv.conf /etc/resolv.conf.bak
|
|
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
|
fi
|
|
|
|
pytest --automake
|