File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,21 @@ proc check_log_for_warning { logfile } {
1111 set log_contents [read $f ]
1212 close $f
1313 puts $log_contents
14- if { [regexp -nocase "Warning" $log_contents ] } {
15- puts " ERROR: Warning found in $logfile "
16- exit 1
14+ # Check each line in the file for warnings other than:
15+ # Warning: pin io_lsbOuts_0 not found
16+ #
17+ # Also list unexpected warnings here as they are found.
18+ set unexpected_warnings {}
19+ foreach line [split $log_contents " \n " ] {
20+ if {[string match " *Warning:*" $line ]} {
21+ if {![string match " *pin .*? not found*" $line ]} {
22+ lappend unexpected_warnings $line
23+ }
24+ }
1725 }
1826}
1927
28+
2029# $::env(VARIANT) contains 4x4_foo, fish out what comes before _
2130set name [lindex [split $::env(FLOW_VARIANT) " _" ] 0]
2231
You can’t perform that action at this time.
0 commit comments