summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-devtools/python/python3-scapy
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-10-27 21:10:14 +0100
committerGyorgy Sarvari <skandigraun@gmail.com>2025-10-27 21:13:18 +0100
commitc71d61037e5375af02b022917f2fc6d130f41313 (patch)
tree48cd9ada84695ee4dbcac45e4612116c289ce480 /meta-networking/recipes-devtools/python/python3-scapy
parent13af8f750688127d5412eae10120dfa83f176c2e (diff)
downloadmeta-openembedded-c71d61037e5375af02b022917f2fc6d130f41313.tar.gz
python3-scapy: fix ptests
1. Enable network access during tests by setting a nameserver 2. Add missing tshark dependency 3. Install missing test files Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-networking/recipes-devtools/python/python3-scapy')
-rw-r--r--meta-networking/recipes-devtools/python/python3-scapy/run-ptest7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-networking/recipes-devtools/python/python3-scapy/run-ptest b/meta-networking/recipes-devtools/python/python3-scapy/run-ptest
index 797d8ecf78..847b69af94 100644
--- a/meta-networking/recipes-devtools/python/python3-scapy/run-ptest
+++ b/meta-networking/recipes-devtools/python/python3-scapy/run-ptest
@@ -1,4 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2
3if ! nslookup example.com; then
4 mv /etc/resolv.conf /etc/resolv.conf.bak
5 echo "nameserver 8.8.8.8" > /etc/resolv.conf
6 trap "mv /etc/resolv.conf.bak /etc/resolv.conf" INT EXIT
7fi
8
2UTscapy3 -t regression.uts -f text -l -C \ 9UTscapy3 -t regression.uts -f text -l -C \
3 -o @PTEST_PATH@/scapy_ptest_$(date +%Y%m%d-%H%M%S).log \ 10 -o @PTEST_PATH@/scapy_ptest_$(date +%Y%m%d-%H%M%S).log \
4 2>&1 | sed -e 's/^passed None/PASS:/' -e 's/^failed None/FAIL:/' 11 2>&1 | sed -e 's/^passed None/PASS:/' -e 's/^failed None/FAIL:/'