]> khamidou — GitHub mirrors - arcanist.git/commit
Raise a better error from PhutilUnitTestEngine when trying to use one copy of libphut...
authorepriestley <git@epriestley.com>
Mon, 5 Mar 2012 18:03:13 +0000 (10:03 -0800)
committerepriestley <git@epriestley.com>
Mon, 5 Mar 2012 18:03:13 +0000 (10:03 -0800)
commit64ada40f03aec2be689f8681c56c673c16212ca4
treebe1a870735613d7dd274ed314b8655b5a61282c8
parent2f9a422bc6365be026e2cf1cdf7d34705fad4e28
Raise a better error from PhutilUnitTestEngine when trying to use one copy of libphutil to test another copy

Summary:
We currently raise a very confusing error when we hit this case:

  Exception: The phutil library '' has not been loaded!

Because of the trickiness of init-order stuff, it's difficult to detect this more explicitly earlier -- instead, just raise a more descriptive error.

Test Plan: Ran "arc unit" in a copy of libphutil other than the one arc loads.

Reviewers: btrahan, jungejason

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T580

Differential Revision: https://secure.phabricator.com/D1760
src/unit/engine/phutil/PhutilUnitTestEngine.php