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

Unified Diff: net/data/verify_certificate_chain_unittest/rebase-errors.py

Issue 2337373003: Add error details to ParseCertificate test data. (Closed)
Patch Set: sigh, git rebase-update added junk file Created 4 years, 3 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
« no previous file with comments | « net/data/parse_certificate_unittest/cert_signature_not_bit_string.pem ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/verify_certificate_chain_unittest/rebase-errors.py
diff --git a/net/data/verify_certificate_chain_unittest/rebase-errors.py b/net/data/verify_certificate_chain_unittest/rebase-errors.py
index dfc9d93751d7ac199a6a541c084a5340aee82ba4..537052afd6fae268af4eac1a1dc3dba3bf698bdf 100755
--- a/net/data/verify_certificate_chain_unittest/rebase-errors.py
+++ b/net/data/verify_certificate_chain_unittest/rebase-errors.py
@@ -93,11 +93,10 @@ def fixup_pem_file(path, actual_errors):
m = errors_block_regex.search(contents)
if not m:
- print "Couldn't find ERRORS block in %s" % (path)
- return
-
- contents = replace_string(contents, m.start(1), m.end(1),
- common.text_data_to_pem('ERRORS', actual_errors))
+ contents += '\n' + common.text_data_to_pem('ERRORS', actual_errors)
+ else:
+ contents = replace_string(contents, m.start(1), m.end(1),
+ common.text_data_to_pem('ERRORS', actual_errors))
# Update the file.
write_string_to_file(contents, path)
« no previous file with comments | « net/data/parse_certificate_unittest/cert_signature_not_bit_string.pem ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698