Commit 4bca154
Fix bin/ci-run-failed-specs to handle bare spec paths
The script previously only parsed spec paths in the format "rspec ./spec/..."
but failed on bare formats like "spec/system/integration_spec.rb[1:1:6:1:2]%"
which is what users might copy from shell output.
Changes:
- Add regex pattern to match bare spec paths (with or without ./ prefix)
- Strip trailing % characters from spec paths
- Normalize all paths to ./spec/ format for consistency
- Improve TTY detection to avoid spurious error messages
- Auto-confirm when TTY is unavailable instead of failing
Now supports all these input formats:
- spec/foo.rb[1:2:3]%
- ./spec/foo.rb[1:2:3]
- rspec ./spec/foo.rb[1:2:3]
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 8a977b3 commit 4bca154
1 file changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| |||
153 | 162 | | |
154 | 163 | | |
155 | 164 | | |
| 165 | + | |
156 | 166 | | |
157 | 167 | | |
158 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
159 | 183 | | |
160 | 184 | | |
161 | 185 | | |
| |||
0 commit comments