aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index c5d8404eb83..188aca96e9b 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -787,7 +787,7 @@ def setup_clangfmt(env):
try:
version = check_output([cmd, "--version"], env=env, universal_newlines=True).rstrip()
print(version)
- if not version.startswith("clang-format version {}.".format(CLANGFMT_VERSION)):
+ if version.find("clang-format version {}.".format(CLANGFMT_VERSION)) == -1:
print("clang-format: wrong version (v{} required). Skipping CPP formatting.".format(CLANGFMT_VERSION))
return False, None, None
except OSError: