mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-11-03 20:11:20 +00:00
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>
This commit is contained in:
1 parent
13af8f7506
commit
c71d61037e
2 files changed
+20
No files matched your search
@@ -1,4 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! nslookup example.com; then
|
||||
mv /etc/resolv.conf /etc/resolv.conf.bak
|
||||
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
||||
trap "mv /etc/resolv.conf.bak /etc/resolv.conf" INT EXIT
|
||||
fi
|
||||
|
||||
UTscapy3 -t regression.uts -f text -l -C \
|
||||
-o @PTEST_PATH@/scapy_ptest_$(date +%Y%m%d-%H%M%S).log \
|
||||
2>&1 | sed -e 's/^passed None/PASS:/' -e 's/^failed None/FAIL:/'
|
||||
Reference in new issue
Block a user