mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Add test of error not getting silenced
This commit is contained in:
		
							parent
							
								
									3e3515e7d9
								
							
						
					
					
						commit
						b01b17689e
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		
							
								
								
									
										9
									
								
								tests/various/logger_cmd_error.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								tests/various/logger_cmd_error.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
trap 'echo "ERROR in logger_cmd_error.sh" >&2; exit 1' ERR
 | 
			
		||||
 | 
			
		||||
(../../yosys -v 3 -C <<EOF
 | 
			
		||||
yosys -import
 | 
			
		||||
hierarchy -top nonexistent
 | 
			
		||||
EOF
 | 
			
		||||
) 2>&1 | grep -F "ERROR: Module \`nonexistent' not found!" > /dev/null
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue