mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	log if we're running with -race
This commit is contained in:
		@@ -253,7 +253,7 @@ runTests() {
 | 
				
			|||||||
  # If we're not collecting coverage, run all requested tests with one 'go test'
 | 
					  # If we're not collecting coverage, run all requested tests with one 'go test'
 | 
				
			||||||
  # command, which is much faster.
 | 
					  # command, which is much faster.
 | 
				
			||||||
  if [[ ! ${KUBE_COVER} =~ ^[yY]$ ]]; then
 | 
					  if [[ ! ${KUBE_COVER} =~ ^[yY]$ ]]; then
 | 
				
			||||||
    kube::log::status "Running tests without code coverage"
 | 
					    kube::log::status "Running tests without code coverage ${KUBE_RACE:+"and with ${KUBE_RACE}"}"
 | 
				
			||||||
    go test "${goflags[@]:+${goflags[@]}}" \
 | 
					    go test "${goflags[@]:+${goflags[@]}}" \
 | 
				
			||||||
     "${KUBE_TIMEOUT}" "${@}" \
 | 
					     "${KUBE_TIMEOUT}" "${@}" \
 | 
				
			||||||
     "${testargs[@]:+${testargs[@]}}" \
 | 
					     "${testargs[@]:+${testargs[@]}}" \
 | 
				
			||||||
@@ -263,6 +263,8 @@ runTests() {
 | 
				
			|||||||
    return ${rc}
 | 
					    return ${rc}
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  kube::log::status "Running tests with code coverage ${KUBE_RACE:+"and with ${KUBE_RACE}"}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Create coverage report directories.
 | 
					  # Create coverage report directories.
 | 
				
			||||||
  if [[ -z "${KUBE_COVER_REPORT_DIR}" ]]; then
 | 
					  if [[ -z "${KUBE_COVER_REPORT_DIR}" ]]; then
 | 
				
			||||||
    cover_report_dir="/tmp/k8s_coverage/$(kube::util::sortable_date)"
 | 
					    cover_report_dir="/tmp/k8s_coverage/$(kube::util::sortable_date)"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user