Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/unit/external_repository/test_external_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,18 @@ def test_compile_commands_external_lib(self):
"-isystem bazel-out/k8-fastbuild/bin/external/"
"external_lib~override/include"
)
else:
elif self.BAZEL_VERSION.startswith("7"): # type:ignore
pattern1 = "-isystem external/external_lib~/include"
pattern2 = (
"-isystem bazel-out/k8-fastbuild/bin/external/"
"external_lib~/include"
)
else:
Comment thread
furtib marked this conversation as resolved.
pattern1 = r"-isystem external/external_lib\+/include"
pattern2 = (
r"-isystem "
r"bazel-out/k8-fastbuild/bin/external/external_lib\+/include"
)

self.assertTrue(self.contains_regex_in_file(comp_json_file, pattern1))
self.assertTrue(self.contains_regex_in_file(comp_json_file, pattern2))
Expand Down
Loading