From 73b3116e634bcf7479cab4aafb04d0f58e3b27d7 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Fri, 10 Jan 2020 22:21:25 +0000 Subject: [PATCH] git-pexpect-pretty-printers 2019-02-14 Jan Kratochvil * scripts/test_printers_common.py: Set TERM to a known harmless value. Gbp-Pq: Topic any Gbp-Pq: Name git-pexpect-pretty-printers.diff --- scripts/test_printers_common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py index dada6aadd..b2bd4ba1c 100644 --- a/scripts/test_printers_common.py +++ b/scripts/test_printers_common.py @@ -60,6 +60,10 @@ TIMEOUTFACTOR = os.environ.get('TIMEOUTFACTOR') if TIMEOUTFACTOR: timeout = int(TIMEOUTFACTOR) +# Otherwise GDB is run in interactive mode and readline may send escape +# sequences confusing output for pexpect. +os.environ["TERM"]="dumb" + try: # Check the gdb version. version_cmd = '{0} --version'.format(gdb_invocation, timeout=timeout) -- 2.30.2