Date: Tue, 6 Oct 2020 04:18:42 +0000 (UTC) From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366469 - head/tests/sys/kern Message-ID: <202010060418.0964Igjq069295@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lwhsu Date: Tue Oct 6 04:18:42 2020 New Revision: 366469 URL: https://svnweb.freebsd.org/changeset/base/366469 Log: 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 Modified: head/tests/sys/kern/sonewconn_overflow.py Modified: head/tests/sys/kern/sonewconn_overflow.py ============================================================================== --- head/tests/sys/kern/sonewconn_overflow.py Tue Oct 6 02:57:37 2020 (r366468) +++ head/tests/sys/kern/sonewconn_overflow.py Tue Oct 6 04:18:42 2020 (r366469) @@ -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"))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010060418.0964Igjq069295>