diff options
| -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 |
