Recover coverage from subprocesses during unit tests (#15354)
* Recover coverage from subprocesses during unit tests
This commit is contained in:
		 Tamara Dahlgren
					Tamara Dahlgren
				
			
				
					committed by
					
						 Todd Gamblin
						Todd Gamblin
					
				
			
			
				
	
			
			
			 Todd Gamblin
						Todd Gamblin
					
				
			
						parent
						
							fa0a5e44aa
						
					
				
				
					commit
					733f9f8cfa
				
			| @@ -37,16 +37,12 @@ bin/spack -h | ||||
| bin/spack help -a | ||||
|  | ||||
| # Profile and print top 20 lines for a simple call to spack spec | ||||
| bin/spack -p --lines 20 spec mpileaks%gcc ^elfutils@0.170 | ||||
| spack -p --lines 20 spec mpileaks%gcc ^elfutils@0.170 | ||||
|  | ||||
| #----------------------------------------------------------- | ||||
| # Run unit tests with code coverage | ||||
| #----------------------------------------------------------- | ||||
| extra_args="" | ||||
| if [[ -n "$@" ]]; then | ||||
|     extra_args="-k $@" | ||||
| fi | ||||
| $coverage_run bin/spack test -x --verbose "$extra_args" | ||||
| $coverage_run $(which spack) test -x --verbose | ||||
|  | ||||
| #----------------------------------------------------------- | ||||
| # Run tests for setup-env.sh | ||||
|   | ||||
		Reference in New Issue
	
	Block a user