File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -159,10 +159,16 @@ process_checkmake_output() {
159159	local  random_id=" ${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM} " 
160160	local  chmk_elog=" checkmake_${random_id} _error_log.log" 
161161
162+ 	#  Clean up on normal exit, but preserve on error for debugging
163+ 	trap  " rm -f '${chmk_elog} ' 2>/dev/null || :" ; 
164+ 
162165	if  !  output=$( checkmake " ${file} " 2> " ${chmk_elog} " ) ;  then 
166+ 		#  On failure, preserve log by removing trap
167+ 		trap  - EXIT
163168		printf  " %s\n" " ::error title='failure'::checkmake failed!" 
164- 		printf  " %s '%s'\n" " ::error title='stderr'::checkmake error:" 
165- 			$( head -n 5000 " ${chmk_elog} " ) >&2 ; 
169+ 		local  error_log
170+ 		error_log=$( head -n 5000 " ${chmk_elog} " ) 
171+ 		printf  " %s '%s'\n" " ::error title='stderr'::checkmake error:" " $error_log " >&2 
166172
167173		printf  " %s\n" " ${output} " |  \
168174			sed -e ' s/   /:/g' |  \
Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ user-install: ./dist
532532	$(QUIET )$(WAIT ) 
533533	$(QUIET )$(ECHO )  " $@ : Done." 
534534
535- all : build-docs docs-req  test-style  test-mat test-reqs build init 
535+ all : init  build  test-reqs  test-mat test-style docs- reqs build-docs 
536536	$(QUIET )$(DO_FAIL )  ; 
537537
538538% 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments