changeset 39249: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 0998f843fcb9
children 7a88643bc0ef
files tests/test-extension.t tests/test-help.t
diffstat 2 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-extension.t	Mon Aug 20 11:29:43 2018 -0400
+++ b/tests/test-extension.t	Mon Aug 20 22:04:22 2018 -0400
@@ -1254,11 +1254,9 @@
   > def g():
   >     pass
   > EOF
-  $ hg --config extensions.path=./path.py help foo > /dev/null
-  abort: no such help topic: foo (no-windows !)
-  (try 'hg help --keyword foo') (no-windows !)
-  \x1b[0;31mabort: no such help topic: foo\x1b[0m (esc) (windows !)
-  \x1b[0;31m(try 'hg help --keyword foo')\x1b[0m (esc) (windows !)
+  $ hg --config extensions.path=./path.py help foo
+  abort: no such help topic: foo
+  (try 'hg help --keyword foo')
   [255]
 
   $ cat > throw.py <<EOF
--- 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