Date: Fri, 11 Oct 2019 21:23:46 +0000 (UTC) From: Eric van Gyzen <vangyzen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r353448 - head/tests/sys/kern Message-ID: <201910112123.x9BLNkfR055459@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vangyzen Date: Fri Oct 11 21:23:46 2019 New Revision: 353448 URL: https://svnweb.freebsd.org/changeset/base/353448 Log: coredump_phnum_test: handle full file system gracefully Skip the test if the file system is full. That's out of scope of this test. MFC after: 1 week Sponsored by: Dell EMC Isilon Modified: head/tests/sys/kern/coredump_phnum_test.sh Modified: head/tests/sys/kern/coredump_phnum_test.sh ============================================================================== --- head/tests/sys/kern/coredump_phnum_test.sh Fri Oct 11 18:41:24 2019 (r353447) +++ head/tests/sys/kern/coredump_phnum_test.sh Fri Oct 11 21:23:46 2019 (r353448) @@ -53,17 +53,28 @@ coredump_phnum_body() case "$cuc" in 0) + unzip_status=0 ;; 1) - atf_check gunzip coredump_phnum_helper.core.gz + gunzip coredump_phnum_helper.core.gz 2>unzip_stderr + unzip_status=$? ;; 2) - atf_check zstd -qd coredump_phnum_helper.core.zst + zstd -qd coredump_phnum_helper.core.zst 2>unzip_stderr + unzip_status=$? ;; *) atf_skip "unsupported kern.compress_user_cores=$cuc" ;; esac + + if [ $unzip_status -ne 0 ]; then + if grep -q 'No space left on device' unzip_stderr; then + atf_skip "file system full: $(df $PWD | tail -n 1)" + fi + atf_fail "unzip failed; status ${unzip_status}; " \ + "stderr: $(cat unzip_stderr)" + fi # Check that core looks good if [ ! -f coredump_phnum_helper.core ]; then
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910112123.x9BLNkfR055459>