Skip to content

Commit

Permalink
Make TD extension state an input of the plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Lőrinc Pap <[email protected]>
  • Loading branch information
Lőrinc Pap committed Jun 1, 2021
1 parent 356c7f7 commit dc0ffda
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ public static void configureTestTask(Test test, ObjectFactory objectFactory, Pro

test.getInputs().property("retry.failOnPassedAfterRetry", adapter.getFailOnPassedAfterRetryInput());

Provider<Boolean> isDeactivatedByTestDistributionPlugin = shouldTestRetryPluginBeDeactivated(test, objectFactory, providerFactory);
test.getInputs().property("isDeactivatedByTestDistributionPlugin", isDeactivatedByTestDistributionPlugin);

test.getExtensions().add(TestRetryTaskExtension.class, TestRetryTaskExtension.NAME, extension);

Provider<Boolean> isDeactivatedByTestDistributionPlugin = shouldTestRetryPluginBeDeactivated(test, objectFactory, providerFactory);
test.doFirst(new ConditionalTaskAction(isDeactivatedByTestDistributionPlugin, new InitTaskAction(adapter, objectFactory)));
test.doLast(new ConditionalTaskAction(isDeactivatedByTestDistributionPlugin, new FinalizeTaskAction()));
}
Expand Down

0 comments on commit dc0ffda

Please sign in to comment.