Skip to content

Commit bed8a8b

Browse files
committed
sta: fix warning checks
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent c5b2cc0 commit bed8a8b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

test/orfs/mock-array/load_power.tcl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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 _
2130
set name [lindex [split $::env(FLOW_VARIANT) "_"] 0]
2231

0 commit comments

Comments
 (0)