forked from OSchip/llvm-project
[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
This commit is contained in:
parent
0e2b74a2b0
commit
f90d3dff6e
|
|
@ -1869,6 +1869,9 @@ class TestBase(Base):
|
||||||
# differ in the debug info, which is not being hashed.
|
# differ in the debug info, which is not being hashed.
|
||||||
self.runCmd('settings set symbols.enable-external-lookup false')
|
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.
|
# Make sure that a sanitizer LLDB's environment doesn't get passed on.
|
||||||
if 'DYLD_LIBRARY_PATH' in os.environ:
|
if 'DYLD_LIBRARY_PATH' in os.environ:
|
||||||
self.runCmd('settings set target.env-vars DYLD_LIBRARY_PATH=')
|
self.runCmd('settings set target.env-vars DYLD_LIBRARY_PATH=')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue