mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-09 13:59:18 +00:00
python3-betamax: fix ptests
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>
This commit is contained in:
parent
777833a517
commit
10af66f23c
@ -1,3 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/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
|
pytest --automake
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user