diff options
author | Pavel Labath <labath@google.com> | 2015-11-02 23:39:09 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-11-02 23:39:09 +0000 |
commit | 05e1f494780b56fcb58ee9f8111329fcec034888 (patch) | |
tree | aa54f05a9c727a9a5271d2386fd4afcfaf4f0817 /lldb/packages/Python/lldbsuite/test | |
parent | adb4d36d76d7df336881a4d329dc8a36293ff79e (diff) | |
download | bcm5719-llvm-05e1f494780b56fcb58ee9f8111329fcec034888.tar.gz bcm5719-llvm-05e1f494780b56fcb58ee9f8111329fcec034888.zip |
Revert "Remove the __import__ hack of lldbtest_config."
The hack still seems to be necessary. Putting it back in until we figure out why.
llvm-svn: 251862
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rwxr-xr-x | lldb/packages/Python/lldbsuite/test/dotest.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index a27b55c2044..278b22c78c6 100755 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -19,11 +19,14 @@ for available options. """ from __future__ import print_function +# this module needs to have global visibility, otherwise test cases +# will import it anew in their local namespace, essentially losing access +# to all the configuration data +globals()['lldbtest_config'] = __import__('lldbtest_config') import use_lldb_suite -import lldbsuite -import lldbtest_config +import lldbsuite import atexit import commands |