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/bin/site_crash_test.py

Issue 5763003: autotest: Test that logs can be sent when processes crash (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: Respond to review Created 10 years 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
« no previous file with comments | « no previous file | client/site_tests/logging_CrashSender/logging_CrashSender.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/bin/site_crash_test.py
diff --git a/client/bin/site_crash_test.py b/client/bin/site_crash_test.py
index cc3e97f980323167297634351d261bf9c273ba6f..ca894281a6af004f839b92518392aaf0792cd5f4 100644
--- a/client/bin/site_crash_test.py
+++ b/client/bin/site_crash_test.py
@@ -119,16 +119,19 @@ class CrashTest(test.test):
return entry
- def write_fake_meta(self, name, exec_name, payload, complete=True):
+ def write_fake_meta(self, name, exec_name, payload, log=None,
+ complete=True):
last_line = ''
if complete:
last_line = 'done=1\n'
- return self.write_crash_dir_entry(name,
- 'exec_name=%s\n'
- 'ver=my_ver\n'
- 'payload=%s\n'
- '%s' % (exec_name, payload,
- last_line))
+ contents = ('exec_name=%s\n'
+ 'ver=my_ver\n'
+ 'payload=%s\n'
+ '%s' % (exec_name, payload,
+ last_line))
+ if log:
+ contents = ('log=%s\n' % log) + contents
+ return self.write_crash_dir_entry(name, contents)
def _prepare_sender_one_crash(self,
« no previous file with comments | « no previous file | client/site_tests/logging_CrashSender/logging_CrashSender.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698