Skip to content

Commit 4f1f6d7

Browse files
authored
Merge pull request #3080 from The-OpenROAD-Project-staging/log-cmd-scope
Fix the scope used by log_cmd
2 parents eec7509 + a736a7f commit 4f1f6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/scripts/util.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ proc log_cmd {cmd args} {
33
set log_cmd "$cmd[join [lmap arg $args {format " %s" [expr {[string match {* *} $arg] ? "\"$arg\"" : "$arg"}]}] ""]"
44
puts $log_cmd
55
set start [clock seconds]
6-
$cmd {*}$args
6+
uplevel 1 [list $cmd {*}$args]
77
set time [expr {[clock seconds] - $start}]
88
if {$time >= 5} {
99
# Ideally we'd use a single line, but the command can output text

0 commit comments

Comments
 (0)