aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/toolchain_test.sh
diff options
context:
space:
mode:
authorGravatar jcater <jcater@google.com>2017-12-04 13:58:25 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-04 14:00:02 -0800
commit349595443e5456a852b09f04f6e732b3c7a6c860 (patch)
tree4705907e4f785e8f3aba6974a69c2b963ab7f1c2 /src/test/shell/bazel/toolchain_test.sh
parent8bec8dd9096d090fd16da405e90125ae04da4c9b (diff)
Platform options are no longer experimental.
RELNOTES: The --host_platform and --platform flags are no longer experimental. PiperOrigin-RevId: 177863761
Diffstat (limited to 'src/test/shell/bazel/toolchain_test.sh')
-rwxr-xr-xsrc/test/shell/bazel/toolchain_test.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/shell/bazel/toolchain_test.sh b/src/test/shell/bazel/toolchain_test.sh
index 1ec1e9f8b0..a3cb3fcb4c 100755
--- a/src/test/shell/bazel/toolchain_test.sh
+++ b/src/test/shell/bazel/toolchain_test.sh
@@ -498,22 +498,22 @@ EOF
# This should use toolchain_1.
bazel build \
- --experimental_host_platform=//:platform1 \
- --experimental_platforms=//:platform2 \
+ --host_platform=//:platform1 \
+ --platforms=//:platform2 \
//demo:use &> $TEST_log || fail "Build failed"
expect_log 'Using toolchain: rule message: "this is the rule", toolchain extra_str: "foo from 1"'
# This should use toolchain_2.
bazel build \
- --experimental_host_platform=//:platform2 \
- --experimental_platforms=//:platform1 \
+ --host_platform=//:platform2 \
+ --platforms=//:platform1 \
//demo:use &> $TEST_log || fail "Build failed"
expect_log 'Using toolchain: rule message: "this is the rule", toolchain extra_str: "foo from 2"'
# This should not match any toolchains.
bazel build \
- --experimental_host_platform=//:platform1 \
- --experimental_platforms=//:platform1 \
+ --host_platform=//:platform1 \
+ --platforms=//:platform1 \
//demo:use &> $TEST_log && fail "Build failure expected"
expect_log 'While resolving toolchains for target //demo:use: no matching toolchains found for types //toolchain:test_toolchain'
expect_not_log 'Using toolchain: rule message:'
@@ -645,10 +645,10 @@ EOF
filegroup(name = 'not_a_platform')
EOF
- bazel build --experimental_platforms=//platform:not_a_platform //demo:use &> $TEST_log && fail "Build failure expected"
+ bazel build --platforms=//platform:not_a_platform //demo:use &> $TEST_log && fail "Build failure expected"
expect_log "While resolving toolchains for target //demo:use: Target filegroup rule //platform:not_a_platform was found as the target platform, but does not provide PlatformInfo"
- bazel build --experimental_host_platform=//platform:not_a_platform //demo:use &> $TEST_log && fail "Build failure expected"
+ bazel build --host_platform=//platform:not_a_platform //demo:use &> $TEST_log && fail "Build failure expected"
expect_log "While resolving toolchains for target //demo:use: Target filegroup rule //platform:not_a_platform was found as the execution platform, but does not provide PlatformInfo"
}