mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
Remove "--ignore-unsound-tests" from "arc diff"
Summary: Ref T13544. This flag only disables a warning and should be a prompt default, not a flag. Test Plan: Grepped for "ignore-unsound-tests", created this revision. Maniphest Tasks: T13544 Differential Revision: https://secure.phabricator.com/D21303
This commit is contained in:
parent
3ed81d35a2
commit
86471fc0fe
1 changed files with 13 additions and 18 deletions
|
@ -295,9 +295,6 @@ EOTEXT
|
|||
'skip-staging' => array(
|
||||
'help' => pht('Do not copy changes to the staging area.'),
|
||||
),
|
||||
'ignore-unsound-tests' => array(
|
||||
'help' => pht('Ignore unsound test failures without prompting.'),
|
||||
),
|
||||
'base' => array(
|
||||
'param' => 'rules',
|
||||
'help' => pht('Additional rules for determining base revision.'),
|
||||
|
@ -1238,14 +1235,6 @@ EOTEXT
|
|||
pht('No unit test failures.'));
|
||||
break;
|
||||
case ArcanistUnitWorkflow::RESULT_UNSOUND:
|
||||
if ($this->getArgument('ignore-unsound-tests')) {
|
||||
echo phutil_console_format(
|
||||
"<bg:yellow>** %s **</bg> %s\n",
|
||||
pht('UNIT UNSOUND'),
|
||||
pht(
|
||||
'Unit testing raised errors, but all '.
|
||||
'failing tests are unsound.'));
|
||||
} else {
|
||||
$continue = phutil_console_confirm(
|
||||
pht(
|
||||
'Unit test results included failures, but all failing tests '.
|
||||
|
@ -1253,7 +1242,13 @@ EOTEXT
|
|||
if (!$continue) {
|
||||
throw new ArcanistUserAbortException();
|
||||
}
|
||||
}
|
||||
|
||||
echo phutil_console_format(
|
||||
"<bg:yellow>** %s **</bg> %s\n",
|
||||
pht('UNIT UNSOUND'),
|
||||
pht(
|
||||
'Unit testing raised errors, but all '.
|
||||
'failing tests are unsound.'));
|
||||
break;
|
||||
case ArcanistUnitWorkflow::RESULT_FAIL:
|
||||
$this->console->writeOut(
|
||||
|
|
Loading…
Reference in a new issue