Make generated drivers log to "../log" instead of "/tmp"
This commit is contained in:
@@ -838,7 +838,7 @@ def put_preamble(MyDriver):
|
||||
txt += [' set catch_status [ catch {']
|
||||
txt += [' set debug_threshold [hgetpropval ${tc_root} debug_threshold]']
|
||||
txt += [' if {${debug_level} >= ${debug_threshold}} {']
|
||||
txt += [' set fd [open "/tmp/%s_[basename ${tc_root}].log" "a"]' % MyDriver['name']]
|
||||
txt += [' set fd [open "../log/%s_[basename ${tc_root}].log" "a"]' % MyDriver['name']]
|
||||
txt += [' set line "[clock format [clock seconds] -format "%T"] ${debug_string}"']
|
||||
txt += [' puts ${fd} "${line}"']
|
||||
txt += [' close ${fd}']
|
||||
|
||||
Reference in New Issue
Block a user