Commit 452d4e3
committed
github: properly fix broken pipe error in blktests result collection
The previous commit f66bc7e attempted to fix the broken pipe error by
removing an intermediate variable and piping find directly to head -1.
However, this didn't actually solve the problem. With pipefail enabled,
when find outputs many files to the pipe and head -1 closes the pipe
after reading the first line, find still receives SIGPIPE and exits
with an error, causing the entire script to fail.
The proper solution is to use find's -print -quit option, which makes
find exit immediately after finding the first match. This eliminates
the pipe entirely and avoids SIGPIPE. Applied this fix to both the
sample file collection and the failure detection logic.
Generated-by: Claude AI
Fixes: f66bc7e ("github: fix broken pipe error in blktests result
collection")
Signed-off-by: Daniel Gomez <[email protected]>1 parent e93004f commit 452d4e3
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
| 149 | + | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
| |||
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
163 | | - | |
| 162 | + | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
0 commit comments