We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5b2cc0 commit bed8a8bCopy full SHA for bed8a8b
1 file changed
test/orfs/mock-array/load_power.tcl
@@ -11,12 +11,21 @@ proc check_log_for_warning { logfile } {
11
set log_contents [read $f]
12
close $f
13
puts $log_contents
14
- if { [regexp -nocase "Warning" $log_contents] } {
15
- puts "ERROR: Warning found in $logfile"
16
- exit 1
+ # Check each line in the file for warnings other than:
+ # Warning: pin io_lsbOuts_0 not found
+ #
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
25
}
26
27
28
+
29
# $::env(VARIANT) contains 4x4_foo, fish out what comes before _
30
set name [lindex [split $::env(FLOW_VARIANT) "_"] 0]
31
0 commit comments