diff options
author | David Matson <davidmatson@users.noreply.github.com> | 2024-03-29 03:09:35 (GMT) |
---|---|---|
committer | David Matson <davidmatson@users.noreply.github.com> | 2024-04-03 15:49:07 (GMT) |
commit | f16770d63dcb69019c0547b26a4a433d2cc62bd7 (patch) | |
tree | b810839a210770d6e0fcd437f4648e2a57ccbe3e /googletest/test/gtest_json_test_utils.py | |
parent | ec7b38672c04c8af3cfb078214edf6751b841014 (diff) | |
download | googletest-f16770d63dcb69019c0547b26a4a433d2cc62bd7.zip googletest-f16770d63dcb69019c0547b26a4a433d2cc62bd7.tar.gz googletest-f16770d63dcb69019c0547b26a4a433d2cc62bd7.tar.bz2 |
Add skipped messages to JSON output (fixes #4507).refs/pull/4508/head
Fix the gap between JSON and XML output.
Diffstat (limited to 'googletest/test/gtest_json_test_utils.py')
-rw-r--r-- | googletest/test/gtest_json_test_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/googletest/test/gtest_json_test_utils.py b/googletest/test/gtest_json_test_utils.py index 86a5925..694a7a6 100644 --- a/googletest/test/gtest_json_test_utils.py +++ b/googletest/test/gtest_json_test_utils.py @@ -51,6 +51,9 @@ def normalize(obj): elif key == 'failure': value = re.sub(r'^.*[/\\](.*:)\d+\n', '\\1*\n', value) return re.sub(r'Stack trace:\n(.|\n)*', 'Stack trace:\n*', value) + elif key == 'message': + value = re.sub(r'^.*[/\\](.*:)\d+\n', '\\1*\n', value) + return re.sub(r'Stack trace:\n(.|\n)*', 'Stack trace:\n*', value) elif key == 'file': return re.sub(r'^.*[/\\](.*)', '\\1', value) else: |