tap/awk: support colorized output
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 21 Aug 2011 18:09:34 +0000 (20:09 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 21 Aug 2011 21:43:43 +0000 (23:43 +0200)
commit1bc8f828ae07b6a3537ef0ca46cd698ba99659e2
tree1bc259a57be1dfa57fccc9b1df45552426eefb97
parentfdfe9a1154b9945c71ac92b5c16ffed21e89f2b4
tap/awk: support colorized output

* lib/tap-driver.sh: Pass definition of colors to the BEGIN block
of the awk script, using ...
($init_colors): ... this new variable, which supersedes ...
($red, $grn, $lgn, $blu, $mgn, $std): ... these variables, which
have been consequently removed.
($color_tests): We don't have to pass this anymore to the awk
script, so do not convert it to a numeric boolean.
(decorate_result): Implement for real.

With this change, the test 'tap-color.test' now passes.
ChangeLog
lib/tap-driver.sh