@@ -23,7 +23,8 @@ load("//python/private:reexports.bzl", "BuiltinPyRuntimeInfo") # buildifier: di
23
23
load ("//tests/base_rules:base_tests.bzl" , "create_base_tests" )
24
24
load ("//tests/base_rules:util.bzl" , "WINDOWS_ATTR" , pt_util = "util" )
25
25
load ("//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" )
27
28
28
29
_tests = []
29
30
@@ -46,9 +47,9 @@ def _test_basic_windows(name, config):
46
47
"//command_line_option:build_python_zip" : "true" ,
47
48
"//command_line_option:cpu" : "windows_x86_64" ,
48
49
"//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 ],
50
51
"//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 ],
52
53
},
53
54
attr_values = {},
54
55
)
@@ -89,9 +90,9 @@ def _test_basic_zip(name, config):
89
90
"//command_line_option:build_python_zip" : "true" ,
90
91
"//command_line_option:cpu" : "linux_x86_64" ,
91
92
"//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 ],
93
94
"//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 ],
95
96
},
96
97
attr_values = {"target_compatible_with" : target_compatible_with },
97
98
)
@@ -326,8 +327,8 @@ def _test_main_module_bootstrap_system_python(name, config):
326
327
target = name + "_subject" ,
327
328
config_settings = {
328
329
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 ],
331
332
},
332
333
)
333
334
@@ -350,8 +351,8 @@ def _test_main_module_bootstrap_script(name, config):
350
351
target = name + "_subject" ,
351
352
config_settings = {
352
353
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 ],
355
356
},
356
357
)
357
358
0 commit comments