zabetak opened a new pull request #1843: URL: https://github.com/apache/hive/pull/1843
### What changes were proposed in this pull request? New JUnit annotation for running/skipping tests when ports are available/taken ### Why are the changes needed? Avoid unexpected failures in tests when ports required in tests are taken. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? `mvn test -pl testutils -Dtest=TestEnabledIfPortsAvailableCondition` [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 1 ``` nc -l 2001 & mvn test -pl testutils -Dtest=TestEnabledIfPortsAvailableCondition ``` [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 2 ``` nc -l 5050 & mvn test -pl testutils -Dtest=TestEnabledIfPortsAvailableCondition ``` [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 3 ``` nc -l 2000 & mvn test -pl testutils -Dtest=TestEnabledIfPortsAvailableCondition ``` [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 3 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
