Skip to content

Commit 1cfed94

Browse files
authored
test: add system_python_nodeps_test (#3609)
Adds a simple system_python bootstrap test. Such a test otherwise doesn't directly exist, and only ends up accidentally tested by something in an example directory.
1 parent a299659 commit 1cfed94

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/bootstrap_impls/BUILD.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
1515
load("@rules_shell//shell:sh_test.bzl", "sh_test")
16+
load("//python:py_test.bzl", "py_test")
1617
load("//tests/support:py_reconfig.bzl", "py_reconfig_binary", "py_reconfig_test")
1718
load("//tests/support:sh_py_run_test.bzl", "sh_py_run_test")
1819
load("//tests/support:support.bzl", "SUPPORTS_BOOTSTRAP_SCRIPT")
@@ -190,4 +191,12 @@ sh_test(
190191
}),
191192
)
192193

194+
py_test(
195+
name = "system_python_nodeps_test",
196+
srcs = ["system_python_nodeps_test.py"],
197+
config_settings = {
198+
"//python/config_settings:bootstrap_impl": "system_python",
199+
},
200+
)
201+
193202
relative_path_test_suite(name = "relative_path_tests")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Hello, world")

0 commit comments

Comments
 (0)