[lldb] Set the TERM environment variable for the API tests

Avoid "TERM environment variable not set" by either propagating the TERM
environment variable or defaulting to vt100. All of our CI is already
doing this explicitly through the --env dotest arg, but it's easy to
forget when setting up a new job. I don't see any downside in making it
the default.
This commit is contained in:
Jonas Devlieghere 2022-03-21 19:18:29 -07:00
parent c8b957fd4c
commit f54931865d
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D
1 changed files with 3 additions and 0 deletions

View File

@ -235,6 +235,9 @@ import lldbtest
# testFormat: The test format to use to interpret tests.
config.test_format = lldbtest.LLDBTest(dotest_cmd)
# Propagate TERM or default to vt100.
config.environment['TERM'] = os.getenv('TERM', default='vt100')
# Propagate FREEBSD_LEGACY_PLUGIN
if 'FREEBSD_LEGACY_PLUGIN' in os.environ:
config.environment['FREEBSD_LEGACY_PLUGIN'] = os.environ[