Commit 2aff5ac
committed
Docs(fix[automation]): Stop check_for_errors matching the echo
why: The rest of this page now waits on tmux channels and matches whole
output lines, but check_for_errors was left scanning the joined pane for
a substring. That is the same echo race the page warns about, in the one
helper where it is easiest to walk into: send_keys types the command,
the shell echoes it back, and `mytool --log-level=ERROR` is reported as
a crash before the tool has printed anything.
The tag also has to survive wrapping. A long command wraps, so a tag
that merely sits mid-line in what you typed can still end up starting a
continuation line. Letting printf assemble the tag from a format and an
argument keeps the literal out of the echo entirely.
what:
- Scan only the lines the command tags as its own, via command_output()
- Take those lines, not a pane, so the helper cannot be handed the echo
- Show it both ways: a healthy command whose own arguments say ERROR is
not flagged, and a command that really fails is
- Record the fix in CHANGES; the racy recipes shipped in 0.61.01 parent c3cedfb commit 2aff5ac
2 files changed
Lines changed: 61 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
50 | 63 | | |
51 | 64 | | |
52 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
155 | 166 | | |
156 | 167 | | |
157 | 168 | | |
158 | 169 | | |
159 | 170 | | |
160 | | - | |
161 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
162 | 181 | | |
163 | 182 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
168 | 187 | | |
169 | 188 | | |
170 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
171 | 192 | | |
172 | | - | |
173 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
174 | 196 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
179 | 201 | | |
180 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
181 | 213 | | |
182 | 214 | | |
183 | 215 | | |
| |||
0 commit comments