git: a58a471b5d51 - stable/12 - pf tests: Only log critical errors from scapy

Kristof Provost kp at FreeBSD.org
Wed Jun 2 18:51:07 UTC 2021


The branch stable/12 has been updated by kp:

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

commit a58a471b5d512c1ae81d3298b5cb317793373867
Author:     Kristof Provost <kp at FreeBSD.org>
AuthorDate: 2021-05-26 11:07:50 +0000
Commit:     Kristof Provost <kp at FreeBSD.org>
CommitDate: 2021-06-02 18:40:07 +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")
    
    (cherry picked from commit 9d0bc96ef8c0288c05a627b3961edd2da046c5c9)
---
 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-all mailing list