mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 13:50:01 +00:00 
			
		
		
		
	Change legacy-script.sh to produce junit output in location set by the
ARTIFACTS environment variables if KUBE_JUNIT_REPORT_DIR is not set. Add missing record_command to a couple of tests in legacy-script.sh. Fix some typos in /test/cmd/README.md
This commit is contained in:
		| @@ -106,6 +106,11 @@ daemonsets="daemonsets" | ||||
| controllerrevisions="controllerrevisions" | ||||
| job="jobs" | ||||
|  | ||||
| # A junit-style XML test report will be generated in the directory specified by KUBE_JUNIT_REPORT_DIR, if set. | ||||
| # If KUBE_JUNIT_REPORT_DIR is unset, and ARTIFACTS is set, then use what is set in ARTIFACTS. | ||||
| if [[ -z "${KUBE_JUNIT_REPORT_DIR:-}" && -n "${ARTIFACTS:-}" ]]; then | ||||
|   export KUBE_JUNIT_REPORT_DIR="${ARTIFACTS}" | ||||
| fi | ||||
|  | ||||
| # include shell2junit library | ||||
| sh2ju="${KUBE_ROOT}/third_party/forked/shell2junit/sh2ju.sh" | ||||
| @@ -606,7 +611,7 @@ runTests() { | ||||
|   ##################################### | ||||
|  | ||||
|   if kube::test::if_supports_resource "${pods}" ; then | ||||
|     run_recursive_resources_tests | ||||
|     record_command run_recursive_resources_tests | ||||
|   fi | ||||
|  | ||||
|  | ||||
| @@ -922,7 +927,7 @@ runTests() { | ||||
|   ############################ | ||||
|  | ||||
|   if kube::test::if_supports_resource "${podsecuritypolicies}" ; then | ||||
|     run_deprecated_api_tests | ||||
|     record_command run_deprecated_api_tests | ||||
|   fi | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user