commit | 5bc399c5a61f1830902786bdc549c4d5d878df05 | [log] [tgz] |
---|---|---|
author | Rob Mohr <mohrr@google.com> | Fri Sep 16 21:46:52 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 16 21:46:52 2022 +0000 |
tree | 1f56da2d03e1715bcf579c37cbffa60e8880db65 | |
parent | 2fb0beee6b469d8477a00a2fb7b05c3e093d6b2c [diff] |
pw_compilation_testing: Fix to work with 3.8 Change-Id: I7b8c0f805370ec1c9b61155d2215552b119b2d39 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/110631 Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com> Reviewed-by: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
diff --git a/pw_compilation_testing/py/pw_compilation_testing/runner.py b/pw_compilation_testing/py/pw_compilation_testing/runner.py index 49577d2..7f902af 100644 --- a/pw_compilation_testing/py/pw_compilation_testing/runner.py +++ b/pw_compilation_testing/py/pw_compilation_testing/runner.py
@@ -43,8 +43,10 @@ for line in fd: if found_rule: if line.startswith(cmd_prefix): - return line[len(cmd_prefix):].strip().removeprefix( - 'ccache ') + cmd = line[len(cmd_prefix):].strip() + if cmd.startswith('ccache '): + cmd = cmd[len('ccache '):] + return cmd if not line.startswith(' '): break