Commit d6273ee
Avoid long stdout lines being truncated in Erlang tests
Summary:
# Context
We recently change the way Erlang tests run, so that the test-executor node running the CT suite has its stdout piped to the test-binary node, who logs for later processing
The port opened on the test-binary is using the `{line, N.}` option, which means that lines of size at most `N` are sent in a single `{eol, L}` message, but longer lines are split in one or more `{noeol, Ln}`, and a final `{eol, L}`.
# Problem
The logic handling messages from the port is only handling `{eol, L}` messages, so we'd be missing the prefix of very long lines.
In practice, N = 1Kb, so in practice this had little impact
# This diff
Handle the `noeol` message as well
Reviewed By: michalmuskala
Differential Revision: D88007158
fbshipit-source-id: 1584edbd9bbd9b374cd3f3f6cbf2c8b4d3d3ef5c1 parent 421a472 commit d6273ee
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| |||
0 commit comments