comparison tests/test-run-tests.t @ 33552:754569f5e999

run-tests: make sure to check if pygments is installed before using it e80041832e introduced support to color the output of tests but used pygments without checking whether it's installed or not. That breaks test-run-tests.t for machines which don't have pygments installed. This patch conditionalize the color test in test-run-tests.t and also add a check to make sure pygments is installed before using that.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 15 Jul 2017 02:17:05 +0530
parents 9c6e64911de0
children eeed23508383
comparison
equal deleted inserted replaced
33551:1d1779734c99 33552:754569f5e999
119 python hash seed: * (glob) 119 python hash seed: * (glob)
120 [1] 120 [1]
121 121
122 test diff colorisation 122 test diff colorisation
123 123
124 #if no-windows 124 #if no-windows pygments
125 $ rt test-failure.t --color always 125 $ rt test-failure.t --color always
126 126
127 \x1b[38;5;124m--- $TESTTMP/test-failure.t\x1b[39m (esc) 127 \x1b[38;5;124m--- $TESTTMP/test-failure.t\x1b[39m (esc)
128 \x1b[38;5;34m+++ $TESTTMP/test-failure.t.err\x1b[39m (esc) 128 \x1b[38;5;34m+++ $TESTTMP/test-failure.t.err\x1b[39m (esc)
129 \x1b[38;5;90;01m@@ -1,3 +1,3 @@\x1b[39;00m (esc) 129 \x1b[38;5;90;01m@@ -1,3 +1,3 @@\x1b[39;00m (esc)