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 logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sc
|
||||
import argparse
|
||||
|
||||
|
@ -31,6 +31,8 @@
|
||||
|
||||
from functools import partial
|
||||
import socket
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sc
|
||||
import argparse
|
||||
import time
|
||||
|
@ -27,6 +27,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import sys
|
||||
import os
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -30,6 +30,8 @@
|
||||
|
||||
import argparse
|
||||
import random as random
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -30,6 +30,8 @@
|
||||
|
||||
import argparse
|
||||
import random as random
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -1,6 +1,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
import threading
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
|
||||
class Sniffer(threading.Thread):
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sc
|
||||
import socket
|
||||
import sys
|
||||
|
@ -29,6 +29,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -27,6 +27,8 @@
|
||||
#
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import socket
|
||||
import sys
|
||||
|
@ -26,6 +26,8 @@
|
||||
# SUCH DAMAGE.
|
||||
|
||||
import random
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import sys
|
||||
|
||||
|
@ -26,6 +26,8 @@
|
||||
# SUCH DAMAGE.
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
logging.getLogger("scapy").setLevel(logging.CRITICAL)
|
||||
import scapy.all as sp
|
||||
import sys
|
||||
from sniffer import Sniffer
|
||||
|
Loading…
Reference in New Issue
Block a user