diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-10-06 04:18:42 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-10-06 04:18:42 +0000 |
commit | 7862a433e947a78b44bce80bb7e00eeb44d752cd (patch) | |
tree | 8fef38a2db179b3972d7265f9e3a378b56e4a020 /tests | |
parent | f165a1df9a8fb7bd57780b433cfb4c2cb3d1d9f4 (diff) | |
download | src-test-7862a433e947a78b44bce80bb7e00eeb44d752cd.tar.gz src-test-7862a433e947a78b44bce80bb7e00eeb44d752cd.zip |
Clear the dmesg buffer to prevent rotating causes issues
This is a workaround for the current continuously failing test case
sys.kern.sonewconn_overflow.sonewconn_overflow_01
The side effect is the dmesg buffer got cleared and may effect other tests
depends on dmesg output running in parallel. The better solution would be
tailing the log file like /var/log/debug.log
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=366469
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/kern/sonewconn_overflow.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sys/kern/sonewconn_overflow.py b/tests/sys/kern/sonewconn_overflow.py index c7eb983fb9855..d94ebc634822e 100644 --- a/tests/sys/kern/sonewconn_overflow.py +++ b/tests/sys/kern/sonewconn_overflow.py @@ -85,6 +85,8 @@ class UnixTest(GenericTest): class LogChecker(): def __init__(self): + # Clear the dmesg buffer to prevent rotating causes issues + os.system('/sbin/dmesg -c > /dev/null') # Figure out how big the dmesg buffer is. self.dmesgOff = len(check_output("/sbin/dmesg")) |