summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-10-19 14:20:53 +0200
committerKhem Raj <raj.khem@gmail.com>2025-10-19 16:11:36 -0700
commit10af66f23cd57d37da23d239a8d43b2b22d4c7a3 (patch)
tree8f281b86204728a34dd4286e1be50bcbb50c5457 /meta-python/recipes-devtools/python
parent777833a517591ded67e0a043932f2462fcb0bfa8 (diff)
downloadmeta-openembedded-10af66f23cd57d37da23d239a8d43b2b22d4c7a3.tar.gz
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>
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-betamax/run-ptest8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-betamax/run-ptest b/meta-python/recipes-devtools/python/python3-betamax/run-ptest
index 8d2017d39c..531af4d015 100644
--- a/meta-python/recipes-devtools/python/python3-betamax/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-betamax/run-ptest
@@ -1,3 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2 2
3
4
5if ! nslookup httpbin.org >/dev/null 2>&1 ; then
6 trap 'mv /etc/resolv.conf.bak /etc/resolv.conf' INT EXIT
7 mv /etc/resolv.conf /etc/resolv.conf.bak
8 echo "nameserver 8.8.8.8" > /etc/resolv.conf
9fi
10
3pytest --automake 11pytest --automake