diff tests/test-help.t @ 39221:d7ac6dafc609

tests: drop an unnecessary redirect to /dev/null This eliminates the need to conditionalize the color output, because NUL on Windows is a tty. Credit to Yuya for recognizing this.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 20 Aug 2018 22:04:22 -0400
parents 68b6383a840a
children 0dfcc348d383
line wrap: on
line diff
--- a/tests/test-help.t	Mon Aug 20 11:29:43 2018 -0400
+++ b/tests/test-help.t	Mon Aug 20 22:04:22 2018 -0400
@@ -1480,11 +1480,9 @@
   Commands:
   $ hg help -c commit > /dev/null
   $ hg help -e -c commit > /dev/null
-  $ hg help -e commit > /dev/null
-  abort: no such help topic: commit (no-windows !)
-  (try 'hg help --keyword commit') (no-windows !)
-  \x1b[0;31mabort: no such help topic: commit\x1b[0m (esc) (windows !)
-  \x1b[0;31m(try 'hg help --keyword commit')\x1b[0m (esc) (windows !)
+  $ hg help -e commit
+  abort: no such help topic: commit
+  (try 'hg help --keyword commit')
   [255]
 
 Test keyword search help