svn commit: r362655 - stable/12/bin/sh/tests

Li-Wen Hsu lwhsu at FreeBSD.org
Fri Jun 26 17:35:10 UTC 2020


Author: lwhsu
Date: Fri Jun 26 17:35:09 2020
New Revision: 362655
URL: https://svnweb.freebsd.org/changeset/base/362655

Log:
  MFC r362646:
  
  Temporarily skip flakey bin.sh.execution.functional_test.bg12 in CI
  
  PR:		247559
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/12/bin/sh/tests/functional_test.sh
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/bin/sh/tests/functional_test.sh
==============================================================================
--- stable/12/bin/sh/tests/functional_test.sh	Fri Jun 26 16:20:34 2020	(r362654)
+++ stable/12/bin/sh/tests/functional_test.sh	Fri Jun 26 17:35:09 2020	(r362655)
@@ -27,6 +27,7 @@
 # $FreeBSD$
 
 SRCDIR=$(atf_get_srcdir)
+CATEGORY=$(basename ${SRCDIR})
 
 check()
 {
@@ -60,7 +61,20 @@ add_testcase()
 	esac
 
 	atf_test_case ${tc_escaped}
-	eval "${tc_escaped}_body() { check ${tc}; }"
+
+	if [ "$(atf_config_get ci false)" = "true" ]; then
+		case "${CATEGORY}/${tc}" in
+		execution/bg12.0)
+			eval "${tc_escaped}_body() { atf_skip 'https://bugs.freebsd.org/247559'; }"
+			;;
+		*)
+			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-all mailing list