Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: client/common_lib/test.py

Issue 6246035: Merge remote branch 'cros/upstream' into master (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/common_lib/test.py
diff --git a/client/common_lib/test.py b/client/common_lib/test.py
index 766766b4902e181f2dcca5dbffe51f7071263ba9..310b45dc17695610dfedef52b7744e1e4262bf42 100644
--- a/client/common_lib/test.py
+++ b/client/common_lib/test.py
@@ -71,8 +71,8 @@ class base_test(object):
def write_test_keyval(self, attr_dict):
- utils.write_keyval(self.outputdir, attr_dict)
-
+ utils.write_keyval(self.outputdir, attr_dict,
+ tap_report=self.job._tap)
@staticmethod
def _append_type_to_keys(dictionary, typename):
@@ -84,25 +84,29 @@ class base_test(object):
def write_perf_keyval(self, perf_dict):
- self.write_iteration_keyval({}, perf_dict)
+ self.write_iteration_keyval({}, perf_dict,
+ tap_report=self.job._tap)
def write_attr_keyval(self, attr_dict):
- self.write_iteration_keyval(attr_dict, {})
+ self.write_iteration_keyval(attr_dict, {},
+ tap_report=self.job._tap)
- def write_iteration_keyval(self, attr_dict, perf_dict):
+ def write_iteration_keyval(self, attr_dict, perf_dict, tap_report=None):
# append the dictionaries before they have the {perf} and {attr} added
self._keyvals.append({'attr':attr_dict, 'perf':perf_dict})
self._new_keyval = True
if attr_dict:
attr_dict = self._append_type_to_keys(attr_dict, "attr")
- utils.write_keyval(self.resultsdir, attr_dict, type_tag="attr")
+ utils.write_keyval(self.resultsdir, attr_dict, type_tag="attr",
+ tap_report=tap_report)
if perf_dict:
perf_dict = self._append_type_to_keys(perf_dict, "perf")
- utils.write_keyval(self.resultsdir, perf_dict, type_tag="perf")
+ utils.write_keyval(self.resultsdir, perf_dict, type_tag="perf",
+ tap_report=tap_report)
keyval_path = os.path.join(self.resultsdir, "keyval")
print >> open(keyval_path, "a"), ""

Powered by Google App Engine
This is Rietveld 408576698