From 05e1f494780b56fcb58ee9f8111329fcec034888 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 2 Nov 2015 23:39:09 +0000 Subject: 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 --- lldb/packages/Python/lldbsuite/test/dotest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test') 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 -- cgit v1.2.3