Don't re-raise StepFailure exceptions in cbuildbot main script.

StepFailure exceptions are already recorded in the report and in the
stage that failed, so there is no need to print them again.

BUG=chromium-os:32596
TEST=Run cbuildbot and verify tracebacks are still printed out, but
     not quite as many times.

Change-Id: Id1c5c537de1151d3f26ff28f50306b3cbd7a45de
Reviewed-on: https://gerrit.chromium.org/gerrit/27460
Commit-Ready: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
diff --git a/scripts/cbuildbot.py b/scripts/cbuildbot.py
index 913702e..28aa472 100644
--- a/scripts/cbuildbot.py
+++ b/scripts/cbuildbot.py
@@ -330,6 +330,12 @@
         success = self._ReExecuteInBuildroot(sync_instance)
       else:
         self.RunStages()
+    except results_lib.StepFailure:
+      # StepFailure exceptions are already recorded in the report, so there
+      # is no need to print these tracebacks twice.
+      exception_thrown = True
+      if not print_report:
+        raise
     except Exception:
       exception_thrown = True
       raise