You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by kn...@apache.org on 2015/06/25 22:02:37 UTC
[3/8] 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/fcd0d9e7
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/fcd0d9e7
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/fcd0d9e7
Branch: refs/heads/master
Commit: fcd0d9e7b639f352c6fd6870dcfdec4d830f34d9
Parents: fb9b527
Author: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Authored: Wed Jun 17 11:06:46 2015 -0500
Committer: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Committed: Wed Jun 17 11:06:46 2015 -0500
----------------------------------------------------------------------
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/fcd0d9e7/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 5a9a866..a91f49d 100644
--- a/dev-tools/travis/print-errors-from-test-reports.py
+++ b/dev-tools/travis/print-errors-from-test-reports.py
@@ -35,7 +35,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: