diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-19 14:20:53 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-19 16:11:36 -0700 |
| commit | 10af66f23cd57d37da23d239a8d43b2b22d4c7a3 (patch) | |
| tree | 8f281b86204728a34dd4286e1be50bcbb50c5457 | |
| parent | 777833a517591ded67e0a043932f2462fcb0bfa8 (diff) | |
| download | meta-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>
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-betamax/run-ptest | 8 |
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 | |||
| 5 | if ! 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 | ||
| 9 | fi | ||
| 10 | |||
| 3 | pytest --automake | 11 | pytest --automake |
