Skip to content

Commit f22c63b

Browse files
committed
[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.
1 parent 601102d commit f22c63b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/packages/Python/lldbsuite/test/lldbpexpect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def launch(self, executable=None, extra_args=None, timeout=60, dimensions=None):
3636
args.extend(extra_args)
3737

3838
env = dict(os.environ)
39-
env["TERM"]="vt100"
39+
env["TERM"] = "vt100"
40+
env["HOME"] = self.getBuildDir()
4041

4142
import pexpect
4243
self.child = pexpect.spawn(

0 commit comments

Comments
 (0)