diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-17 17:56:57 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-17 17:56:57 +0000 |
commit | f90d3dff6edc906766cfe3196d6ac1b6d76e9c5a (patch) | |
tree | 8c1ed710a84cb03ea2770d1e03cfe458779342ea /lldb/packages/Python/lldbsuite | |
parent | 0e2b74a2b0b875a601851f389bf4bd2fa7b33735 (diff) | |
download | bcm5719-llvm-f90d3dff6edc906766cfe3196d6ac1b6d76e9c5a.tar.gz bcm5719-llvm-f90d3dff6edc906766cfe3196d6ac1b6d76e9c5a.zip |
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbtest.py | 3 |
1 files changed, 3 insertions, 0 deletions
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=') |