diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2020-02-21 10:21:10 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-22 01:41:37 +0000 |
commit | a9666e310606cbd1a54d32fa0cb200f16cf1d451 (patch) | |
tree | c959e47bf83afe168e4685f529c8807d12e11bf4 /fuzz | |
parent | ca9520eb9dc235c54e6c4ad2d5a6bc02699233e1 (diff) | |
download | chrome-ec-a9666e310606cbd1a54d32fa0cb200f16cf1d451.tar.gz |
util: convert config_option_check.py to Python 3
The main fixes that were needed were:
* Use utf-8 encoding from git subprocess.
* Don't use 'is' to compare string equality (Python does not guarantee
interning of strings). For the parser state, the string comparison
was removed by changing this to an Enum, since we have Python 3
anyway.
BUG=chromium:1031705
BRANCH=None
TEST=create commit with invalid config options and run script, notice
the script points them out and exits 1, then test without that
commit, no output and exit 0.
Change-Id: I1113e063f747f0207c4b59a74f4e4a06bbcd5fcd
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2068520
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'fuzz')
0 files changed, 0 insertions, 0 deletions