]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use a consistent indent depth to display summary test results
authorepriestley <git@epriestley.com>
Tue, 7 Jun 2011 17:48:16 +0000 (10:48 -0700)
committerepriestley <git@epriestley.com>
Tue, 7 Jun 2011 17:53:42 +0000 (10:53 -0700)
Summary:
I typed the wrong number of spaces into some of these.

Test Plan:
Visual inspection, ran 'arc unit'

Reviewed By: tuomaspelkonen
Reviewers: tuomaspelkonen
CC: aran, tuomaspelkonen
Differential Revision: 402

src/workflow/unit/ArcanistUnitWorkflow.php

index 0a53487e51330f9e1314566048942025e2ad1780..f9716b96fde72414e3660d4f0f1777003111a1b9 100644 (file)
@@ -102,17 +102,17 @@ EOTEXT
 
     $status_codes = array(
       ArcanistUnitTestResult::RESULT_PASS => phutil_console_format(
-        '   <bg:green>** PASS **</bg>'),
+        '<bg:green>** PASS **</bg>'),
       ArcanistUnitTestResult::RESULT_FAIL => phutil_console_format(
-        '   <bg:red>** FAIL **</bg>'),
+        '<bg:red>** FAIL **</bg>'),
       ArcanistUnitTestResult::RESULT_SKIP => phutil_console_format(
-        '   <bg:yellow>** SKIP **</bg>'),
+        '<bg:yellow>** SKIP **</bg>'),
       ArcanistUnitTestResult::RESULT_BROKEN => phutil_console_format(
-        ' <bg:red>** BROKEN **</bg>'),
+        '<bg:red>** BROKEN **</bg>'),
       ArcanistUnitTestResult::RESULT_UNSOUND => phutil_console_format(
-        ' <bg:yellow>** UNSOUND **</bg>'),
+        '<bg:yellow>** UNSOUND **</bg>'),
       ArcanistUnitTestResult::RESULT_POSTPONED => phutil_console_format(
-        ' <bg:yellow>** POSTPONED **</bg>'),
+        '<bg:yellow>** POSTPONED **</bg>'),
       );
 
     $unresolved = array();
@@ -122,7 +122,7 @@ EOTEXT
       if ($result_code == ArcanistUnitTestResult::RESULT_POSTPONED) {
         $postponed_count++;
       } else {
-        echo $status_codes[$result_code].' '.$result->getName()."\n";
+        echo '  '.$status_codes[$result_code].' '.$result->getName()."\n";
         if ($result_code != ArcanistUnitTestResult::RESULT_PASS) {
           echo $result->getUserData()."\n";
           $unresolved[] = $result;