git: 9d0bc96ef8c0 - main - pf tests: Only log critical errors from scapy

Kristof Provost kp at FreeBSD.org
Wed May 26 13:26:04 UTC 2021


The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=9d0bc96ef8c0288c05a627b3961edd2da046c5c9

commit 9d0bc96ef8c0288c05a627b3961edd2da046c5c9
Author:     Kristof Provost <kp at FreeBSD.org>
AuthorDate: 2021-05-26 11:07:50 +0000
Commit:     Kristof Provost <kp at FreeBSD.org>
CommitDate: 2021-05-26 11:18:47 +0000

    pf tests: Only log critical errors from scapy
    
    See a26e895f3d803cc1f4ee1c2b33c61330998808b9. Silence these new tests as
    well.
    
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 tests/sys/netpfil/pf/fragcommon.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/sys/netpfil/pf/fragcommon.py b/tests/sys/netpfil/pf/fragcommon.py
index 2bcd3989b420..1ca3129e6057 100644
--- a/tests/sys/netpfil/pf/fragcommon.py
+++ b/tests/sys/netpfil/pf/fragcommon.py
@@ -27,6 +27,8 @@
 
 import argparse
 import os
+import logging
+logging.getLogger("scapy").setLevel(logging.CRITICAL)
 import scapy.all as sp
 import sys
 import time


More information about the dev-commits-src-main mailing list