Improvements to autotest.py
This CL includes several improvements to autotest.py: -Slightly expand the GTest regex. -Previously, it missed some tests due to them not explicitly including gtest via #include "...gtest.h". Variations included <...gtest.h>, gmock.h, or via *test_utils.h. Expand the regex to include these cases. -In my (limited) testing I didn't see any large regressions in terms of number of files added via the expanded regex, but its possible there is something I missed. -Add utf-8 encoding when opening a file to read. -This avoids errors when opening files with non-English characters. -Debugging lines to output all files that matched the regex. -Added sys.executable to beginning of call to make-gtest-filter.py. -This enables it to work on Windows, which requires 'python3' before calling a python script. Change-Id: Ic9e67658b7298867d997ba4cc396320bf5d61c8c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2517944Reviewed-by:Michael Thiessen <mthiesse@chromium.org> Commit-Queue: Mario Bianucci <mabian@microsoft.com> Cr-Commit-Position: refs/heads/master@{#824031}
Showing
Please register or sign in to comment