Skip to content

Commit

Permalink
Use a new package for the new platform in tests.
Browse files Browse the repository at this point in the history
Work towards platform-based flags: bazelbuild#19409.

PiperOrigin-RevId: 621568874
Change-Id: Id880b5fbf3085ee2dbef966aba8ccda9b442c75d
  • Loading branch information
katre authored and Kila2 committed May 13, 2024
1 parent 9c60278 commit 36dc249
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 36dc249

Please sign in to comment.