changeset 53275:c6ebaa66d411 stable

tests: disable color for `hg fastexport` with redirected output On Linux, there were no color codes emitted, but there were on Windows. I guess Windows considers `/dev/null` (`NUL`) to still be a terminal, so the color codes aren't skipped: $ hg debugshell >/dev/null >>> import sys >>> print(ui.fout.isatty(), file=sys.stderr) True >>> print(ui.fout.orig.isatty(), file=sys.stderr) True >>> print(ui.fout.orig.fp.isatty(), file=sys.stderr) True
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 14 May 2025 15:33:20 -0400
parents e61533488826
children 751c01d7eff9
files tests/test-fastexport.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-fastexport.t	Thu May 15 22:41:51 2025 -0400
+++ b/tests/test-fastexport.t	Wed May 14 15:33:20 2025 -0400
@@ -904,6 +904,6 @@
   $ echo a > a
   $ hg add a
   $ hg commit -m test_invalid_date --date '0 1'
-  $ hg fastexport >/dev/null
+  $ hg fastexport --color=never >/dev/null
   abort: UTC offset in (0.0, 1) is not an integer number of minutes
   [255]