mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Run unit on background also in waiting for confirmation with arc diff --excuse
Test Plan: Made lint error, slept in test, verified that tests are finished when I confirm `arc diff --excuse`. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3803
This commit is contained in:
parent
0b02170723
commit
448e820eb6
1 changed files with 10 additions and 6 deletions
|
@ -1372,11 +1372,10 @@ EOTEXT
|
|||
|
||||
private function getErrorExcuse($type, $prompt, $history) {
|
||||
if ($this->getArgument('excuse')) {
|
||||
$prompt .= " Ignore them?";
|
||||
if (!$this->console->confirm($prompt)) {
|
||||
throw new ArcanistUserAbortException();
|
||||
}
|
||||
$this->excuses[$type] = $this->getArgument('excuse');
|
||||
$this->console->sendMessage(array(
|
||||
'type' => $type,
|
||||
'confirm' => $prompt." Ignore them?",
|
||||
));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1393,7 +1392,12 @@ EOTEXT
|
|||
|
||||
public function handleServerMessage(PhutilConsoleMessage $message) {
|
||||
$data = $message->getData();
|
||||
$response = '';
|
||||
if (isset($data['prompt'])) {
|
||||
$response = phutil_console_prompt($data['prompt'], idx($data, 'history'));
|
||||
} else if (phutil_console_confirm($data['confirm'])) {
|
||||
$response = $this->getArgument('excuse');
|
||||
}
|
||||
if ($response == '') {
|
||||
throw new ArcanistUserAbortException();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue