diff 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
line wrap: on
line diff
--- a/tests/test-run-tests.t	Sat Jul 15 13:21:23 2017 -0700
+++ b/tests/test-run-tests.t	Sat Jul 15 02:17:05 2017 +0530
@@ -121,7 +121,7 @@
 
 test diff colorisation
 
-#if no-windows
+#if no-windows pygments
   $ rt test-failure.t --color always
   
   \x1b[38;5;124m--- $TESTTMP/test-failure.t\x1b[39m (esc)