Fossil SCM

Included the answer text supplied to a fossil command when provided to fossil_maybe_answer in a call to protOut. This makes debugging tests using fossil http and a GET or POST to /json easier.

rberteig 2016-01-29 23:26 rberteig-json-test
Commit f34014308039bdd82caf0015ce44d27e1adb6d34
1 file changed +1
--- test/tester.tcl
+++ test/tester.tcl
@@ -133,10 +133,11 @@
133133
}
134134
protOut $cmd
135135
136136
flush stdout
137137
if {[string length $answer] > 0} {
138
+ protOut $answer
138139
set prompt_file [file join $::tempPath fossil_prompt_answer]
139140
write_file $prompt_file $answer\n
140141
set rc [catch {eval exec $cmd <$prompt_file} result]
141142
file delete $prompt_file
142143
} else {
143144
--- test/tester.tcl
+++ test/tester.tcl
@@ -133,10 +133,11 @@
133 }
134 protOut $cmd
135
136 flush stdout
137 if {[string length $answer] > 0} {
 
138 set prompt_file [file join $::tempPath fossil_prompt_answer]
139 write_file $prompt_file $answer\n
140 set rc [catch {eval exec $cmd <$prompt_file} result]
141 file delete $prompt_file
142 } else {
143
--- test/tester.tcl
+++ test/tester.tcl
@@ -133,10 +133,11 @@
133 }
134 protOut $cmd
135
136 flush stdout
137 if {[string length $answer] > 0} {
138 protOut $answer
139 set prompt_file [file join $::tempPath fossil_prompt_answer]
140 write_file $prompt_file $answer\n
141 set rc [catch {eval exec $cmd <$prompt_file} result]
142 file delete $prompt_file
143 } else {
144

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button