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 537052afd6fae268af4eac1a1dc3dba3bf698bdf..923757564156b22b9779098ebf8898ad2c3e075c 100755 |
--- a/net/data/verify_certificate_chain_unittest/rebase-errors.py |
+++ b/net/data/verify_certificate_chain_unittest/rebase-errors.py |
@@ -15,7 +15,7 @@ To use this run the affected tests, and then pass the input to this script |
net/data/verify_certificate_chain_unittest/rebase-errors.py |
The script works by scanning the stdout looking for gtest failures when |
-comparing "errors.ToDebugString()". The C++ test side should have been |
+comparing "errors.ToDebugString(chain)". The C++ test side should have been |
instrumented to dump out the test file's path on mismatch. |
This script will then update the corresponding file(s) -- a .pem file, and |
@@ -33,7 +33,7 @@ import re |
# * Group 2 of the match is file path (relative to //src) where the expected |
# errors were read from. |
failed_test_regex = re.compile(r""" |
-Value of: errors.ToDebugString\(\) |
+Value of: errors.ToDebugString\((?:chain)?\) |
Actual: "(.*)" |
(?:.|\n)+? |
Test file: (.*) |