Commit 77c038f
committed
workflows: eliminate unnecessary echo pipes in blktests counting
The blktests result collection was using intermediate variables and
echo pipes for counting tests, which is inefficient and could
potentially hit broken pipe issues with set -o pipefail. The test
name extraction piped through echo to count total tests, and failed
test detection stored results in a variable before piping through
echo to wc.
Optimize by piping find output directly to the counting pipeline,
eliminating the intermediate test_names and bad_files variables. This
makes the code more efficient with less memory usage and avoids any
potential SIGPIPE issues. The failed_tests count is now always set
directly from the find pipeline, eliminating the conditional logic
that was previously needed to handle the empty case.
Generated-by: Claude AI
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>1 parent 427a970 commit 77c038f
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
131 | 132 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 133 | + | |
| 134 | + | |
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
| |||
0 commit comments