phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajeshb...@apache.org
Subject phoenix git commit: Test Analyzer tool generatest tests in single line file too.(Rajeshbabu)
Date Thu, 30 Mar 2017 10:08:32 GMT
Repository: phoenix
Updated Branches:
  refs/heads/calcite cc9115cb0 -> 463a52a43


Test Analyzer tool generatest tests in single line file too.(Rajeshbabu)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/463a52a4
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/463a52a4
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/463a52a4

Branch: refs/heads/calcite
Commit: 463a52a434085a274dbd1c242d6073ec5c782711
Parents: cc9115c
Author: Rajeshbabu Chintaguntla <rajeshbabu@apache.org>
Authored: Thu Mar 30 15:38:14 2017 +0530
Committer: Rajeshbabu Chintaguntla <rajeshbabu@apache.org>
Committed: Thu Mar 30 15:38:14 2017 +0530

----------------------------------------------------------------------
 test_failure_analyzer.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/463a52a4/test_failure_analyzer.py
----------------------------------------------------------------------
diff --git a/test_failure_analyzer.py b/test_failure_analyzer.py
index 4391d07..f6c25dd 100644
--- a/test_failure_analyzer.py
+++ b/test_failure_analyzer.py
@@ -8,8 +8,9 @@ reload(sys)
 sys.setdefaultencoding('utf-8')
 
 fieldnames = ['classname', 'testcase', 'error_message','type','info'];
+singlelinecsvfile = open("single_line_calcite_failed_tests.csv", "w");
 with open('calcite_failed_tests.csv', 'w') as csvfile:
-  writer = csv.DictWriter(csvfile, fieldnames,dialect='excel',delimiter=',');
+  writer = csv.DictWriter(csvfile, fieldnames,dialect='excel',delimiter=',');  
   writer.writeheader();
   target_dir = os.path.join(os.getcwd(),'phoenix-core/target');
   list_of_dirs = os.listdir(target_dir);
@@ -29,5 +30,11 @@ with open('calcite_failed_tests.csv', 'w') as csvfile:
                 error_message = child.get('message');
                 type = child.get('type');
                 info = child.text;
+		singlelinecsvfile.write(classname+',');
+		singlelinecsvfile.write(testcase+',');
+		singlelinecsvfile.write(type.replace('\n',"\r")+',');
+		singlelinecsvfile.write(info.replace('\n',"\r"));
+		singlelinecsvfile.write("\b")
 	        writer.writerow({'classname':classname,'testcase':testcase,'error_message':error_message,'type':type,'info':info});
 csvfile.close();
+singlelinecsvfile.close();


Mime
View raw message