]> git.proxmox.com Git - mirror_iproute2.git/commit
testsuite: Fix colorize
authorPetr Vorel <pvorel@suse.cz>
Tue, 18 Dec 2018 19:29:04 +0000 (20:29 +0100)
committerStephen Hemminger <sthemmin@microsoft.com>
Fri, 21 Dec 2018 04:16:28 +0000 (20:16 -0800)
commit261a5290dd24ffeb3535ce135832690cfd85ba2d
tree73880068bc09b7886cf3375324769749408a75ea
parentc579ec14a753a90f7f624ef0ee22053397d27c8f
testsuite: Fix colorize

bash and dash require for escape sequence to use 'echo -e' or printf
(but working on zsh). Choosing printf as it's implementation is IMHO
more portable than echo implementations.
dash also require to use \033[0; as escape sequence instead of \e[0;

NOTE: \e[0; kept in lib/color.c as it's not problematic for C code
(working when run ip on various shells).

Fixes: 7e2f71b4 ("testsuite: colorize test result output")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
testsuite/Makefile