Page MenuHomePhabricator

bin/fresh fails on `CLR_GREEN=`tput setaf 2` (Debian 10, Qemu, default TERM=vt220)
Closed, ResolvedPublic

Description

Context is T250808: Decide how to run a test involving docker inside WMF CI.

We're invoking a VM via Qemu running Debian 10 and the default TERM is black-and-white. Supporting only plain text and bold text. As such, tput informs us some of the colors are unavailable.

It prints no error message but exits non-zero. I didn't realise before that this command can exit non-zero under what I consider normal conditions (e.g. falling back to no colors), but https://linux.die.net/man/1/tput confirms that this is normal.

Event Timeline

Change 593012 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[fresh@master] bin: Ignore non-zero exit for tput color codes

https://gerrit.wikimedia.org/r/593012

Change 593012 merged by jenkins-bot:
[fresh@master] bin: Ignore non-zero exit for tput color codes

https://gerrit.wikimedia.org/r/593012

Krinkle claimed this task.