mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	pgtest: grab possible warnings from install.log
Since PG 9.5, 'make check' records the build output in install.log, so look in there for warnings too. Backpatch-through: 9.5
This commit is contained in:
		@@ -23,10 +23,15 @@ then	PGCLEAN=clean
 | 
				
			|||||||
else	shift
 | 
					else	shift
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rm -f tmp_install/log/install.log
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Run "make check" and store return code in $TMP/ret.
 | 
					# Run "make check" and store return code in $TMP/ret.
 | 
				
			||||||
# Display output but also capture it in $TMP/0.
 | 
					# Display output but also capture it in $TMP/0.
 | 
				
			||||||
($MAKE "$@" $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee  $TMP/0
 | 
					($MAKE "$@" $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee  $TMP/0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Grab possible warnings from install.log
 | 
				
			||||||
 | 
					[ -e tmp_install/log/install.log ] && cat tmp_install/log/install.log >> $TMP/0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# If success, display warnings
 | 
					# If success, display warnings
 | 
				
			||||||
if [ $(cat $TMP/ret) -eq 0 ]
 | 
					if [ $(cat $TMP/ret) -eq 0 ]
 | 
				
			||||||
then	cat $TMP/0 |
 | 
					then	cat $TMP/0 |
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user