<div dir="ltr">Hmm, yea that code path only gets run on OSX.  I think the problem is that I changed the order that happens in.  It now happens right when you import `configuration` for the first time, and it used to happen explicitly in `main()`.  So maybe just make that function public, and call in the same place it used to be called.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 7, 2015 at 9:55 PM Todd Fiala <<a href="mailto:todd.fiala@gmail.com">todd.fiala@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">tfiala added a comment.<br>
<br>
Here's what I'm seeing so far (as of r254983) when running on OS X:<br>
<br>
  $ test/dotest.py --results-formatter lldbsuite.test.basic_results_formatter.BasicResultsFormatter<br>
  Traceback (most recent call last):<br>
    File "test/dotest.py", line 6, in <module><br>
      import lldbsuite.test<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/__init__.py", line 5, in <module><br>
      from . import dotest<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/dotest.py", line 43, in <module><br>
      from . import configuration<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/configuration.py", line 223, in <module><br>
      __setupCrashInfoHook()<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/configuration.py", line 33, in __setupCrashInfoHook<br>
      test_dir = os.environ['LLDB_TEST']<br>
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__<br>
      raise KeyError(key)<br>
  KeyError: 'LLDB_TEST'<br>
<br>
<br>
<br>
  $ test/dotest.py --curses<br>
  Traceback (most recent call last):<br>
    File "test/dotest.py", line 6, in <module><br>
      import lldbsuite.test<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/__init__.py", line 5, in <module><br>
      from . import dotest<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/dotest.py", line 43, in <module><br>
      from . import configuration<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/configuration.py", line 223, in <module><br>
      __setupCrashInfoHook()<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/configuration.py", line 33, in __setupCrashInfoHook<br>
      test_dir = os.environ['LLDB_TEST']<br>
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__<br>
      raise KeyError(key)<br>
  KeyError: 'LLDB_TEST'<br>
<br>
<br>
<br>
  $ test/dotest.py<br>
  Traceback (most recent call last):<br>
    File "test/dotest.py", line 6, in <module><br>
      import lldbsuite.test<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/__init__.py", line 5, in <module><br>
      from . import dotest<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/dotest.py", line 43, in <module><br>
      from . import configuration<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/configuration.py", line 223, in <module><br>
      __setupCrashInfoHook()<br>
    File "/Users/tfiala/src/lldb-tot/lldb/packages/Python/lldbsuite/test/configuration.py", line 33, in __setupCrashInfoHook<br>
      test_dir = os.environ['LLDB_TEST']<br>
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__<br>
      raise KeyError(key)<br>
  KeyError: 'LLDB_TEST'<br>
<br>
<br>
<a href="http://reviews.llvm.org/D15318" rel="noreferrer" target="_blank">http://reviews.llvm.org/D15318</a><br>
<br>
<br>
<br>
</blockquote></div>