]> khamidou — GitHub mirrors - arcanist.git/commit
Avoid infinite loop in 'arc unit'
authorepriestley <git@epriestley.com>
Thu, 1 Dec 2011 00:10:27 +0000 (16:10 -0800)
committerepriestley <git@epriestley.com>
Thu, 1 Dec 2011 16:50:12 +0000 (08:50 -0800)
commit99717090ef0f7146e6b6f90bf705623aff2627e2
treed1c563dd014039071cb994651cb3acac3fdf244a
parent3f8c37fe7e8c36112728a8d3ce89d1f7914c7e64
Avoid infinite loop in 'arc unit'

Summary: If you modify a file at the root level (like the celerity map) we run
the dir/path checks in the wrong order and fail to detect that we can't possibly
find any modules. This leads to an infinite loop inside the while loop below.

Test Plan: Ran "arc unit" on a change which affects the celerity map.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, btrahan
Differential Revision: 1146
src/unit/engine/phutil/PhutilUnitTestEngine.php