diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-06-02 16:49:03 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-06-02 16:49:58 -0700 |
commit | 4c53d4801cbbb1b573e4ef758f93ead12e1f59a2 (patch) | |
tree | f8f6ee8b4eae4f4798ca964c821a0197fa2a901e /lldb/packages/Python/lldbsuite/test/lldbtest.py | |
parent | 393ac216489773e3676ec7d80c3d993f78a29b6a (diff) | |
download | llvm-4c53d4801cbbb1b573e4ef758f93ead12e1f59a2.zip llvm-4c53d4801cbbb1b573e4ef758f93ead12e1f59a2.tar.gz llvm-4c53d4801cbbb1b573e4ef758f93ead12e1f59a2.tar.bz2 |
[lldb/Test] Don't use the env to pass around configuration variables (NFC)
Don't use the environment to pass values to the builder. Use the
configuration instead.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbtest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 04ba7ea..0a640d2 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -668,7 +668,7 @@ class Base(unittest2.TestCase): def getBuildDir(self): """Return the full path to the current test.""" - return os.path.join(os.environ["LLDB_BUILD"], self.mydir, + return os.path.join(configuration.test_build_dir, self.mydir, self.getBuildDirBasename()) def getReproducerDir(self): @@ -682,7 +682,6 @@ class Base(unittest2.TestCase): def makeBuildDir(self): """Create the test-specific working directory, deleting any previous contents.""" - # See also dotest.py which sets up ${LLDB_BUILD}. bdir = self.getBuildDir() if os.path.isdir(bdir): shutil.rmtree(bdir) |