mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 12:11:27 -05:00 
			
		
		
		
	Restore MBEDTLS_TEST_OUTCOME_FILE after test_default_out_of_box
Since components run in the main process, unsetting MBEDTLS_TEST_OUTCOME_FILE unset it in subsequent components as well. To avoid this, save and restore the value. (Making each component run in a subshell would be a better solution, but it would be a much bigger change.)
This commit is contained in:
		
							parent
							
								
									0d8b86a131
								
							
						
					
					
						commit
						717cd76e8a
					
				@ -667,6 +667,7 @@ component_test_default_out_of_box () {
 | 
			
		||||
    msg "build: make, default config (out-of-box)" # ~1min
 | 
			
		||||
    make
 | 
			
		||||
    # Disable fancy stuff
 | 
			
		||||
    SAVE_MBEDTLS_TEST_OUTCOME_FILE="$MBEDTLS_TEST_OUTCOME_FILE"
 | 
			
		||||
    unset MBEDTLS_TEST_OUTCOME_FILE
 | 
			
		||||
 | 
			
		||||
    msg "test: main suites make, default config (out-of-box)" # ~10s
 | 
			
		||||
@ -674,6 +675,9 @@ component_test_default_out_of_box () {
 | 
			
		||||
 | 
			
		||||
    msg "selftest: make, default config (out-of-box)" # ~10s
 | 
			
		||||
    programs/test/selftest
 | 
			
		||||
 | 
			
		||||
    export MBEDTLS_TEST_OUTCOME_FILE="$SAVE_MBEDTLS_TEST_OUTCOME_FILE"
 | 
			
		||||
    unset SAVE_MBEDTLS_TEST_OUTCOME_FILE
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
component_test_default_cmake_gcc_asan () {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user