Commit 9dce810
committed
fix: use -tt for forced PTY and -o cat for journalctl color passthrough
Two fixes discovered during live sandbox testing:
1. SSH PTY: Changed --ssh-flag=-t to --ssh-flag=-tt. The single -t
requires stdin to be a terminal, but subprocess.Popen doesn't have
one. Double -tt forces PTY allocation regardless.
2. journalctl output format: The default --short format strips ANSI
escape codes from stored messages. When colors are enabled, use
-o cat which outputs raw message content preserving ANSI codes
written by the --pretty devserver.1 parent b1d7523 commit 9dce810
4 files changed
Lines changed: 20 additions & 9 deletions
File tree
- devservices
- commands
- utils
- tests
- commands
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
931 | 935 | | |
932 | | - | |
| 936 | + | |
933 | 937 | | |
934 | | - | |
| 938 | + | |
935 | 939 | | |
936 | 940 | | |
937 | 941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | | - | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3128 | 3128 | | |
3129 | 3129 | | |
3130 | 3130 | | |
| 3131 | + | |
3131 | 3132 | | |
3132 | 3133 | | |
3133 | 3134 | | |
| |||
3170 | 3171 | | |
3171 | 3172 | | |
3172 | 3173 | | |
| 3174 | + | |
3173 | 3175 | | |
3174 | 3176 | | |
3175 | 3177 | | |
| |||
3212 | 3214 | | |
3213 | 3215 | | |
3214 | 3216 | | |
| 3217 | + | |
3215 | 3218 | | |
3216 | 3219 | | |
3217 | 3220 | | |
| |||
3254 | 3257 | | |
3255 | 3258 | | |
3256 | 3259 | | |
| 3260 | + | |
3257 | 3261 | | |
3258 | 3262 | | |
3259 | 3263 | | |
| |||
3299 | 3303 | | |
3300 | 3304 | | |
3301 | 3305 | | |
| 3306 | + | |
3302 | 3307 | | |
3303 | 3308 | | |
3304 | 3309 | | |
| |||
3343 | 3348 | | |
3344 | 3349 | | |
3345 | 3350 | | |
| 3351 | + | |
3346 | 3352 | | |
3347 | 3353 | | |
3348 | 3354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
| 739 | + | |
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
| 747 | + | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
| 752 | + | |
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
| 758 | + | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| |||
0 commit comments