We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c3b9f0 commit 6a50382Copy full SHA for 6a50382
test/orfs/mock-array/load_power.tcl
@@ -17,12 +17,19 @@ proc check_log_for_warning { logfile } {
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]} {
+ if { [string match "*Warning:*" $line] } {
+ if { ![string match "*pin * not found*" $line] } {
22
lappend unexpected_warnings $line
23
}
24
25
26
+ if { [llength $unexpected_warnings] > 0 } {
27
+ puts "Error: Unexpected warnings found in log file $logfile:"
28
+ foreach warning $unexpected_warnings {
29
+ puts $warning
30
+ }
31
+ exit 1
32
33
34
35
0 commit comments