]> khamidou — GitHub mirrors - arcanist.git/commit
two small changes for "arc unit" post hook
authormgummelt <mgummelt@fb.com>
Fri, 9 Sep 2011 00:36:20 +0000 (17:36 -0700)
committermgummelt <mgummelt@fb.com>
Fri, 9 Sep 2011 01:25:54 +0000 (18:25 -0700)
commit3250cbb4d372d11f538420fe6c64424e6c9582cc
tree4f6d28e482f063e442ec216a14f08445930a7b00
parent2d50e08ee6fbf8f53dbb21377d699782f6f7dcc2
two small changes for "arc unit" post hook

Summary:
1) unit engine getter method in the unit workflow

   we store some information (unit test results) in the engine that we
   need to access in the "arc unit" post hook

2) make requireCleanWorkingCopy() public

   "arc unit" doesn't need to be clean in general, but we'd like the
   option to upgrade the workflow to require it if necessary.  We use
   this for ensuring a repo is clean before updating unit test
   results.

Test Plan: Used both features in a custom post hook in arc unit

Reviewers: epriestley

Reviewed By: epriestley

CC: dpepper, aran, epriestley
Differential Revision: 917
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/unit/ArcanistUnitWorkflow.php