From f90d3dff6edc906766cfe3196d6ac1b6d76e9c5a Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 17 Jul 2019 17:56:57 +0000 Subject: [dotest] Disable color while testing. Disable colors so we don't risk having unexpected ANSI codes in the test output. Currently, the behavior of a test can change depending on whether it's run under a color-supporting terminal, or under a dummy terminal, for example when using lit or multiprocessing. llvm-svn: 366356 --- lldb/packages/Python/lldbsuite/test/lldbtest.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test') diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 0fbdfd82f53..35f0c76a97a 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -1869,6 +1869,9 @@ class TestBase(Base): # differ in the debug info, which is not being hashed. self.runCmd('settings set symbols.enable-external-lookup false') + # Disable color. + self.runCmd("settings set use-color false") + # Make sure that a sanitizer LLDB's environment doesn't get passed on. if 'DYLD_LIBRARY_PATH' in os.environ: self.runCmd('settings set target.env-vars DYLD_LIBRARY_PATH=') -- cgit v1.2.3