You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by ka...@apache.org on 2015/09/18 03:01:20 UTC

[3/6] storm git commit: Updated error handling of print errors

Updated error handling of print errors


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/6c36860a
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/6c36860a
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/6c36860a

Branch: refs/heads/0.10.x-branch
Commit: 6c36860a85478e2e237dcfccd96586a7fd34e3f9
Parents: 3207e94
Author: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Authored: Wed Jun 17 11:06:46 2015 -0500
Committer: Jungtaek Lim <ka...@gmail.com>
Committed: Fri Sep 18 09:47:03 2015 +0900

----------------------------------------------------------------------
 dev-tools/travis/print-errors-from-test-reports.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/6c36860a/dev-tools/travis/print-errors-from-test-reports.py
----------------------------------------------------------------------
diff --git a/dev-tools/travis/print-errors-from-test-reports.py b/dev-tools/travis/print-errors-from-test-reports.py
index 95cc7b7..a9fe9b8 100644
--- a/dev-tools/travis/print-errors-from-test-reports.py
+++ b/dev-tools/travis/print-errors-from-test-reports.py
@@ -34,7 +34,15 @@ def print_detail_information(testcase, fail_or_error):
 
 def print_error_reports_from_report_file(file_path):
     tree = ElementTree()
-    tree.parse(file_path)
+    try:
+        tree.parse(file_path)
+    except:
+        print "-" * 50
+        print "Error parsing %s"%file_path
+        f = open(file_path, "r");
+        print f.read();
+        print "-" * 50
+        return
 
     testcases = tree.findall(".//testcase")
     for testcase in testcases: