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

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: 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
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..2fa0f0a3ed0b335dd9c0fb93c0a08fc4df4ad1d1 100644
--- a/client/bin/site_crash_test.py
+++ b/client/bin/site_crash_test.py
@@ -119,16 +119,18 @@ 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):
petkov 2010/12/13 19:44:09 80 chars
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,

Powered by Google App Engine
This is Rietveld 408576698