Commit c4fcd50
t1410-reflog.sh: avoid suppressing git's exit code in pipelines
Piping git commands directly to wc -l suppresses the exit code of
git, hiding potential failures from the test suite. Use
test_stdout_line_count instead, which handles exit code preservation
internally while keeping the test logic clean and readable.
Signed-off-by: Gatla Vishweshwar Reddy <gatlavishweshwarreddy26@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent f85a7e6 commit c4fcd50
1 file changed
Lines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 247 | + | |
| 248 | + | |
253 | 249 | | |
254 | 250 | | |
| 251 | + | |
| 252 | + | |
255 | 253 | | |
256 | | - | |
257 | | - | |
258 | 254 | | |
259 | 255 | | |
260 | | - | |
261 | | - | |
262 | 256 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 257 | + | |
| 258 | + | |
267 | 259 | | |
268 | 260 | | |
| 261 | + | |
269 | 262 | | |
270 | | - | |
271 | 263 | | |
272 | 264 | | |
273 | 265 | | |
| |||
321 | 313 | | |
322 | 314 | | |
323 | 315 | | |
324 | | - | |
| 316 | + | |
325 | 317 | | |
326 | 318 | | |
327 | 319 | | |
328 | | - | |
| 320 | + | |
329 | 321 | | |
330 | 322 | | |
331 | 323 | | |
| |||
0 commit comments