git-pexpect-pretty-printers
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)
committerAurelien Jarno <aurel32@debian.org>
Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)
2019-02-14  Jan Kratochvil <jan.kratochvil@redhat.com>

* 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

index dada6aadde35de42d49be1403da64a869aab0120..b2bd4ba1ccfd687393677e61d54cae4686f16f0a 100644 (file)
@@ -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)