Skip to content

Commit

Permalink
Fix typo: plateform -> platform (#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
costin-zaharia-sonarsource authored Oct 2, 2023
1 parent 3f43845 commit f2138d9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ public void testCppOnly() throws Exception {
FileUtils.copyURLToFile(new URL(ORCHESTRATOR.getServer().getUrl() + "/static/cpp/build-wrapper-win-x86.zip"), buildWrapper);
ZipUtils.unzip(buildWrapper, buildWrapperDir);

String plateformToolset = System.getProperty("msbuild.plateformtoolset","v140");
String platformToolset = System.getProperty("msbuild.platformtoolset","v140");
String windowsSdk = System.getProperty("msbuild.windowssdk","10.0.18362.0");

TestUtils.runMSBuildWithBuildWrapper(ORCHESTRATOR, projectDir, new File(buildWrapperDir, "build-wrapper-win-x86/build-wrapper-win-x86-64.exe"),
wrapperOutDir, "/t:Rebuild",
String.format("/p:WindowsTargetPlatformVersion=%s", windowsSdk),
String.format("/p:PlatformToolset=%s", plateformToolset));
String.format("/p:PlatformToolset=%s", platformToolset));

BuildResult result = TestUtils.executeEndStepAndDumpResults(ORCHESTRATOR, projectDir, projectKey, token);
assertThat(result.isSuccess()).isTrue();
Expand Down Expand Up @@ -133,13 +133,13 @@ public void testCppWithSharedFiles() throws Exception {
FileUtils.copyURLToFile(new URL(ORCHESTRATOR.getServer().getUrl() + "/static/cpp/build-wrapper-win-x86.zip"), buildWrapper);
ZipUtils.unzip(buildWrapper, buildWrapperDir);

String plateformToolset = System.getProperty("msbuild.plateformtoolset","v140");
String platformToolset = System.getProperty("msbuild.platformtoolset","v140");
String windowsSdk = System.getProperty("msbuild.windowssdk","10.0.18362.0");

TestUtils.runMSBuildWithBuildWrapper(ORCHESTRATOR, projectDir, new File(buildWrapperDir, "build-wrapper-win-x86/build-wrapper-win-x86-64.exe"),
wrapperOutDir, "/t:Rebuild",
String.format("/p:WindowsTargetPlatformVersion=%s", windowsSdk),
String.format("/p:PlatformToolset=%s", plateformToolset));;
String.format("/p:PlatformToolset=%s", platformToolset));;

BuildResult result = TestUtils.executeEndStepAndDumpResults(ORCHESTRATOR, projectDir, projectKey, token);
assertThat(result.isSuccess()).isTrue();
Expand Down

0 comments on commit f2138d9

Please sign in to comment.