mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42: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(
|
'skip-staging' => array(
|
||||||
'help' => pht('Do not copy changes to the staging area.'),
|
'help' => pht('Do not copy changes to the staging area.'),
|
||||||
),
|
),
|
||||||
'ignore-unsound-tests' => array(
|
|
||||||
'help' => pht('Ignore unsound test failures without prompting.'),
|
|
||||||
),
|
|
||||||
'base' => array(
|
'base' => array(
|
||||||
'param' => 'rules',
|
'param' => 'rules',
|
||||||
'help' => pht('Additional rules for determining base revision.'),
|
'help' => pht('Additional rules for determining base revision.'),
|
||||||
|
@ -1238,14 +1235,6 @@ EOTEXT
|
||||||
pht('No unit test failures.'));
|
pht('No unit test failures.'));
|
||||||
break;
|
break;
|
||||||
case ArcanistUnitWorkflow::RESULT_UNSOUND:
|
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(
|
$continue = phutil_console_confirm(
|
||||||
pht(
|
pht(
|
||||||
'Unit test results included failures, but all failing tests '.
|
'Unit test results included failures, but all failing tests '.
|
||||||
|
@ -1253,7 +1242,13 @@ EOTEXT
|
||||||
if (!$continue) {
|
if (!$continue) {
|
||||||
throw new ArcanistUserAbortException();
|
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;
|
break;
|
||||||
case ArcanistUnitWorkflow::RESULT_FAIL:
|
case ArcanistUnitWorkflow::RESULT_FAIL:
|
||||||
$this->console->writeOut(
|
$this->console->writeOut(
|
||||||
|
|
Loading…
Reference in a new issue