tests: Only log critical errors from scapy
Since 2.4.5 scapy started issuing warnings about a few different configurations during our tests. These are harmless, but they generate stderr output, which upsets atf_check. Configure scapy to only log critical errors (and thus not warnings) to fix these tests. MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
98454e3f82
commit
a26e895f3d
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sc
|
import scapy.all as sc
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
import socket
|
import socket
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sc
|
import scapy.all as sc
|
||||||
import argparse
|
import argparse
|
||||||
import time
|
import time
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import random as random
|
import random as random
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import random as random
|
import random as random
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
|
|
||||||
class Sniffer(threading.Thread):
|
class Sniffer(threading.Thread):
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sc
|
import scapy.all as sc
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
# SUCH DAMAGE.
|
# SUCH DAMAGE.
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
# SUCH DAMAGE.
|
# SUCH DAMAGE.
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import logging
|
||||||
|
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||||
import scapy.all as sp
|
import scapy.all as sp
|
||||||
import sys
|
import sys
|
||||||
from sniffer import Sniffer
|
from sniffer import Sniffer
|
||||||
|
Loading…
Reference in New Issue
Block a user