summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
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