Grant Henke has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17307


Change subject: [test] Fix handling of assume staments in Java RetryRule
......................................................................

[test] Fix handling of assume staments in Java RetryRule

The java RetryRule did not treat the AssumptionViolatedException
thrown by the various assume statments in Junit correctly. This
can result in test failures which should actually be skipped tests
and in the case of the flaky test reporting can result in reporting
failed tests which were actually skipped.

This patch adjusts the handling of the AssumptionViolatedException
to skip the test correctly and mark the test as a success when
reporting given there is no “skipped” result we can report to dist-test.

I used the JUnit  TestWatcher rule which I used for reference:
https://github.com/junit-team/junit4/blob/main/src/main/java/org/junit/rules/TestWatcher.java#L63-L65

Change-Id: I638f56c8e21ed7c57ee576cbc23332e676dba7cf
---
M java/kudu-test-utils/src/main/java/org/apache/kudu/test/junit/RetryRule.java
M 
java/kudu-test-utils/src/test/java/org/apache/kudu/test/junit/TestRetryRule.java
2 files changed, 21 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/07/17307/1
-- 
To view, visit http://gerrit.cloudera.org:8080/17307
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I638f56c8e21ed7c57ee576cbc23332e676dba7cf
Gerrit-Change-Number: 17307
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <[email protected]>

Reply via email to