Skip to content

Commit

Permalink
Merge pull request #15224 from Joseph-Cass/defect-279818-mpConfig-Win…
Browse files Browse the repository at this point in the history
…dows-path-TCK-fix

Skip testEnvironmentConfigSource() on Windows machines
  • Loading branch information
JCass149 authored Dec 14, 2020
2 parents 5ecca16 + c31d092 commit d03acbc
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@
<suite name="microprofile-config-2.0-tck" verbose="2"
configfailurepolicy="continue">
<test name="tck-package-org.eclipse.microprofile.config20.tck">
<method-selectors>
<method-selector>
<script language="beanshell">
<!-- ConfigProviderTest.testEnvironmentConfigSource() looks for a Config Property called "path". -->
<!-- On some Windows machines, the Property can be called "Path", and hence the value isn't found. -->
<!-- Therefore this test is skipped on Windows machines. -->
<!-- Relates to: https://github.com/eclipse/microprofile-config/issues/664 -->
<![CDATA[
String os = System.getProperty("os.name");
if (os.contains("Windows")){
return !method.getName().startsWith("testEnvironmentConfigSource");
}else{
return true;
}
]]>
</script>
</method-selector>
</method-selectors>

<packages>
<package name="org.eclipse.microprofile.config.tck.*"></package>
</packages>
Expand Down

0 comments on commit d03acbc

Please sign in to comment.