@@ -23,7 +23,8 @@ load("//python/private:reexports.bzl", "BuiltinPyRuntimeInfo") # buildifier: di
2323load ("//tests/base_rules:base_tests.bzl" , "create_base_tests" )
2424load ("//tests/base_rules:util.bzl" , "WINDOWS_ATTR" , pt_util = "util" )
2525load ("//tests/support:py_executable_info_subject.bzl" , "PyExecutableInfoSubject" )
26- load ("//tests/support:support.bzl" , "CC_TOOLCHAIN" , "CROSSTOOL_TOP" , "LINUX_X86_64" , "WINDOWS_X86_64" )
26+ load ("//tests/support:support.bzl" , "CC_TOOLCHAIN" , "CROSSTOOL_TOP" )
27+ load ("//tests/support/platforms:platforms.bzl" , "platform_targets" )
2728
2829_tests = []
2930
@@ -46,9 +47,9 @@ def _test_basic_windows(name, config):
4647 "//command_line_option:build_python_zip" : "true" ,
4748 "//command_line_option:cpu" : "windows_x86_64" ,
4849 "//command_line_option:crosstool_top" : CROSSTOOL_TOP ,
49- "//command_line_option:extra_execution_platforms" : [WINDOWS_X86_64 ],
50+ "//command_line_option:extra_execution_platforms" : [platform_targets . WINDOWS_X86_64 ],
5051 "//command_line_option:extra_toolchains" : [CC_TOOLCHAIN ],
51- "//command_line_option:platforms" : [WINDOWS_X86_64 ],
52+ "//command_line_option:platforms" : [platform_targets . WINDOWS_X86_64 ],
5253 },
5354 attr_values = {},
5455 )
@@ -89,9 +90,9 @@ def _test_basic_zip(name, config):
8990 "//command_line_option:build_python_zip" : "true" ,
9091 "//command_line_option:cpu" : "linux_x86_64" ,
9192 "//command_line_option:crosstool_top" : CROSSTOOL_TOP ,
92- "//command_line_option:extra_execution_platforms" : [LINUX_X86_64 ],
93+ "//command_line_option:extra_execution_platforms" : [platform_targets . LINUX_X86_64 ],
9394 "//command_line_option:extra_toolchains" : [CC_TOOLCHAIN ],
94- "//command_line_option:platforms" : [LINUX_X86_64 ],
95+ "//command_line_option:platforms" : [platform_targets . LINUX_X86_64 ],
9596 },
9697 attr_values = {"target_compatible_with" : target_compatible_with },
9798 )
@@ -326,8 +327,8 @@ def _test_main_module_bootstrap_system_python(name, config):
326327 target = name + "_subject" ,
327328 config_settings = {
328329 labels .BOOTSTRAP_IMPL : "system_python" ,
329- "//command_line_option:extra_execution_platforms" : ["@bazel_tools//tools:host_platform" , LINUX_X86_64 ],
330- "//command_line_option:platforms" : [LINUX_X86_64 ],
330+ "//command_line_option:extra_execution_platforms" : ["@bazel_tools//tools:host_platform" , platform_targets . LINUX_X86_64 ],
331+ "//command_line_option:platforms" : [platform_targets . LINUX_X86_64 ],
331332 },
332333 )
333334
@@ -350,8 +351,8 @@ def _test_main_module_bootstrap_script(name, config):
350351 target = name + "_subject" ,
351352 config_settings = {
352353 labels .BOOTSTRAP_IMPL : "script" ,
353- "//command_line_option:extra_execution_platforms" : ["@bazel_tools//tools:host_platform" , LINUX_X86_64 ],
354- "//command_line_option:platforms" : [LINUX_X86_64 ],
354+ "//command_line_option:extra_execution_platforms" : ["@bazel_tools//tools:host_platform" , platform_targets . LINUX_X86_64 ],
355+ "//command_line_option:platforms" : [platform_targets . LINUX_X86_64 ],
355356 },
356357 )
357358
0 commit comments