From 36dc24929ccd02e07e3eb53f49870ec05071d69c Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 3 Apr 2024 10:33:50 -0700 Subject: [PATCH] Use a new package for the new platform in tests. Work towards platform-based flags: #19409. PiperOrigin-RevId: 621568874 Change-Id: Id880b5fbf3085ee2dbef966aba8ccda9b442c75d --- .../rules/genrule/GenRuleWindowsConfiguredTargetTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/google/devtools/build/lib/bazel/rules/genrule/GenRuleWindowsConfiguredTargetTest.java b/src/test/java/com/google/devtools/build/lib/bazel/rules/genrule/GenRuleWindowsConfiguredTargetTest.java index 0da09caa42e05e..0f7f38372f21fa 100644 --- a/src/test/java/com/google/devtools/build/lib/bazel/rules/genrule/GenRuleWindowsConfiguredTargetTest.java +++ b/src/test/java/com/google/devtools/build/lib/bazel/rules/genrule/GenRuleWindowsConfiguredTargetTest.java @@ -206,10 +206,10 @@ public void testMissingCmdAttributeError() throws Exception { @Test public void testMissingCmdAttributeErrorOnNonWindowsPlatform() throws Exception { - scratch.overwriteFile( - "platforms/BUILD", + scratch.file( + "newplatforms/BUILD", "platform(name = 'nonwindows', constraint_values = ['@platforms//os:linux'])"); - useConfiguration("--host_platform=//platforms:nonwindows"); + useConfiguration("--host_platform=//newplatforms:nonwindows"); checkError( "foo",