svn commit: r366485 - head/tests/sys/capsicum
Li-Wen Hsu
lwhsu at FreeBSD.org
Tue Oct 6 12:57:55 UTC 2020
Author: lwhsu
Date: Tue Oct 6 12:57:54 2020
New Revision: 366485
URL: https://svnweb.freebsd.org/changeset/base/366485
Log:
Temporarily skip failing test cases in CI:
sys.capsicum.functional.ForkedOpenatTest_WithFlagInCapabilityMode___
sys.capsicum.functional.OpenatTest__WithFlag
PR: 249960
Sponsored by: The FreeBSD Foundation
Modified:
head/tests/sys/capsicum/functional.sh
Modified: head/tests/sys/capsicum/functional.sh
==============================================================================
--- head/tests/sys/capsicum/functional.sh Tue Oct 6 12:56:29 2020 (r366484)
+++ head/tests/sys/capsicum/functional.sh Tue Oct 6 12:57:54 2020 (r366485)
@@ -40,6 +40,13 @@ check()
${SRCDIR}/${CAPSICUM_TEST_BIN} --gtest_filter=${tc}
}
+skip()
+{
+ local reason=${1}
+
+ atf_skip "${reason}"
+}
+
add_testcase()
{
local tc=${1}
@@ -48,7 +55,20 @@ add_testcase()
tc_escaped=$(echo ${tc} | sed -e 's/\./__/')
atf_test_case ${tc_escaped}
- eval "${tc_escaped}_body() { check ${tc}; }"
+
+ if [ "$(atf_config_get ci false)" = "true" ]; then
+ case "${tc_escaped}" in
+ ForkedOpenatTest_WithFlagInCapabilityMode___|OpenatTest__WithFlag)
+ eval "${tc_escaped}_body() { skip \"http://bugs.freebsd.org/249960\"; }"
+ ;;
+ *)
+ eval "${tc_escaped}_body() { check ${tc}; }"
+ ;;
+ esac
+ else
+ eval "${tc_escaped}_body() { check ${tc}; }"
+ fi
+
atf_add_test_case ${tc_escaped}
}
More information about the svn-src-head
mailing list