Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 5300dd18f -> b145ea3ab
PHOENIX-1941 Phoenix tests are failing in linux env with missing class: StaticMapping (Alicia Ying Shu) Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/2f2f94b6 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/2f2f94b6 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/2f2f94b6 Branch: refs/heads/4.x-HBase-0.98 Commit: 2f2f94b6c183af659b90381136b08238b8885f92 Parents: 5300dd1 Author: Nick Dimiduk <[email protected]> Authored: Wed Jun 17 12:17:33 2015 -0700 Committer: Nick Dimiduk <[email protected]> Committed: Wed Jun 17 12:36:53 2015 -0700 ---------------------------------------------------------------------- .../phoenix/end2end/End2EndTestDriver.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/2f2f94b6/phoenix-core/src/it/java/org/apache/phoenix/end2end/End2EndTestDriver.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/End2EndTestDriver.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/End2EndTestDriver.java index 26d18cf..743f729 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/End2EndTestDriver.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/End2EndTestDriver.java @@ -21,6 +21,7 @@ package org.apache.phoenix.end2end; import java.io.IOException; import java.io.PrintStream; +import java.lang.annotation.Annotation; import java.util.ArrayList; import java.util.HashSet; import java.util.List; @@ -79,10 +80,20 @@ public class End2EndTestDriver extends AbstractHBaseTool { @Override public boolean isCandidateClass(Class<?> c) { - return testFilterRe.matcher(c.getName()).find() && - // Our pattern will match the below NON-IntegrationTest. Rather than - // do exotic regex, just filter it out here - super.isCandidateClass(c); + Annotation[] annotations = c.getAnnotations(); + for (Annotation curAnnotation : annotations) { + if (curAnnotation.toString().contains("NeedsOwnMiniClusterTest")) { + /* Skip tests that aren't designed to run against a live cluster. + * For a live cluster, we cannot bring it up and down as required + * for these tests to run. + */ + return false; + } + } + return testFilterRe.matcher(c.getName()).find() && + // Our pattern will match the below NON-IntegrationTest. Rather than + // do exotic regex, just filter it out here + super.isCandidateClass(c); } }
