mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	meson: Flush stdout in testwrap
Otherwise the progress won't reliably be displayed during a test. Reviewed-by: Noah Misch <noah@leadboat.com> Discussion: https://postgr.es/m/kx6xu7suexal5vwsxpy7ybgkcznx6hgywbuhkr6qabcwxjqax2@i4pcpk75jvaa Backpatch-through: 16
This commit is contained in:
		@@ -46,6 +46,7 @@ for line in sp.stdout:
 | 
				
			|||||||
    if line.startswith(b'ok '):
 | 
					    if line.startswith(b'ok '):
 | 
				
			||||||
        line = line.replace(b' # TODO ', b' # testwrap-overridden-TODO ', 1)
 | 
					        line = line.replace(b' # TODO ', b' # testwrap-overridden-TODO ', 1)
 | 
				
			||||||
    sys.stdout.buffer.write(line)
 | 
					    sys.stdout.buffer.write(line)
 | 
				
			||||||
 | 
					    sys.stdout.flush()
 | 
				
			||||||
returncode = sp.wait()
 | 
					returncode = sp.wait()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if returncode == 0:
 | 
					if returncode == 0:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user