Fossil SCM
The final newline must be retained for all test results.
Commit
b045d0774ed489362f38d02c6e7afff4f330d460
Parent
824bfe849bcce6e…
1 file changed
+2
-2
+2
-2
| --- test/tester.tcl | ||
| +++ test/tester.tcl | ||
| @@ -150,14 +150,14 @@ | ||
| 150 | 150 | flush stdout |
| 151 | 151 | if {[string length $answer] > 0} { |
| 152 | 152 | protOut $answer |
| 153 | 153 | set prompt_file [file join $::tempPath fossil_prompt_answer] |
| 154 | 154 | write_file $prompt_file $answer\n |
| 155 | - set rc [catch {eval exec $cmd <$prompt_file} result] | |
| 155 | + set rc [catch {eval exec -keepnewline $cmd <$prompt_file} result] | |
| 156 | 156 | file delete $prompt_file |
| 157 | 157 | } else { |
| 158 | - set rc [catch {eval exec $cmd} result] | |
| 158 | + set rc [catch {eval exec -keepnewline $cmd} result] | |
| 159 | 159 | } |
| 160 | 160 | global RESULT CODE |
| 161 | 161 | set CODE $rc |
| 162 | 162 | if {($rc && !$expectError) || (!$rc && $expectError)} { |
| 163 | 163 | protOut "ERROR: $result" 1 |
| 164 | 164 |
| --- test/tester.tcl | |
| +++ test/tester.tcl | |
| @@ -150,14 +150,14 @@ | |
| 150 | flush stdout |
| 151 | if {[string length $answer] > 0} { |
| 152 | protOut $answer |
| 153 | set prompt_file [file join $::tempPath fossil_prompt_answer] |
| 154 | write_file $prompt_file $answer\n |
| 155 | set rc [catch {eval exec $cmd <$prompt_file} result] |
| 156 | file delete $prompt_file |
| 157 | } else { |
| 158 | set rc [catch {eval exec $cmd} result] |
| 159 | } |
| 160 | global RESULT CODE |
| 161 | set CODE $rc |
| 162 | if {($rc && !$expectError) || (!$rc && $expectError)} { |
| 163 | protOut "ERROR: $result" 1 |
| 164 |
| --- test/tester.tcl | |
| +++ test/tester.tcl | |
| @@ -150,14 +150,14 @@ | |
| 150 | flush stdout |
| 151 | if {[string length $answer] > 0} { |
| 152 | protOut $answer |
| 153 | set prompt_file [file join $::tempPath fossil_prompt_answer] |
| 154 | write_file $prompt_file $answer\n |
| 155 | set rc [catch {eval exec -keepnewline $cmd <$prompt_file} result] |
| 156 | file delete $prompt_file |
| 157 | } else { |
| 158 | set rc [catch {eval exec -keepnewline $cmd} result] |
| 159 | } |
| 160 | global RESULT CODE |
| 161 | set CODE $rc |
| 162 | if {($rc && !$expectError) || (!$rc && $expectError)} { |
| 163 | protOut "ERROR: $result" 1 |
| 164 |