[PATCH] test: Expand tmux right status bar to fit pass/fail/skipped counter and time
I recently realised I couldn't see seconds elapsing in asciinema test
recordings. That's because now that we display a SKIPPED counter, we
need some extra room for characters, 64 in total:
PASS: xxx | FAIL: xxx | SKIPPED: xxx | YYYY-MM-DDThh:mm:ss+00:00
Fixes: 4234ace84cdf ("test: Display count of skipped tests in status and summary")
Signed-off-by: Stefano Brivio
On Thu, Dec 04, 2025 at 11:03:31PM +0100, Stefano Brivio wrote:
I recently realised I couldn't see seconds elapsing in asciinema test recordings. That's because now that we display a SKIPPED counter, we need some extra room for characters, 64 in total:
PASS: xxx | FAIL: xxx | SKIPPED: xxx | YYYY-MM-DDThh:mm:ss+00:00
Fixes: 4234ace84cdf ("test: Display count of skipped tests in status and summary") Signed-off-by: Stefano Brivio
Reviewed-by: David Gibson
--- test/lib/term | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/lib/term b/test/lib/term index 79aa2b7..f596364 100755 --- a/test/lib/term +++ b/test/lib/term @@ -707,7 +707,7 @@ term() {
tmux set window-status-current-style 'bg=colour1 fg=colour233 bold' tmux set status-right '#(TZ="UTC" date -Iseconds)' - tmux set status-right-length 50 + tmux set status-right-length 64 tmux set status-right-style 'bg=colour1 fg=colour233 bold'
tmux set history-limit 500000 -- 2.43.0
-- David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson
participants (2)
-
David Gibson
-
Stefano Brivio