Commit b8004a9
committed
test: fix test_terminal to work reliably in CI
The previous test relied on tty1 existing in the CI environment and used
--inverse as a workaround. With the new terminal detection implementation
that reads from /proc/<PID>/stat, the test behavior changed.
This commit updates the test to:
- Test with '?' (unknown terminal) which matches processes without terminals
- Use kthreadd as a reliable test case (always has no terminal)
- Test --inverse functionality more robustly
This addresses the CI failure where test_terminal was panicking.1 parent eaa6cc8 commit b8004a9
1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
264 | 271 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
273 | 279 | | |
274 | 280 | | |
275 | 281 | | |
| |||
0 commit comments