[lldb/test] Start pexpect tests with a custom HOME

This addresses the flakyness of (at least) TestMultilineNavigation,
which was failing when the editline history of a concurrently executing
test made leaked in. Using a test-specific home directory ensures the
tests are independent.
This commit is contained in:
Pavel Labath 2021-09-14 15:13:51 +02:00
parent 601102d282
commit f22c63b41b
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ class PExpectTest(TestBase):
args.extend(extra_args)
env = dict(os.environ)
env["TERM"]="vt100"
env["TERM"] = "vt100"
env["HOME"] = self.getBuildDir()
import pexpect
self.child = pexpect.spawn(