Skip to content

Commit

Permalink
Add a default run pattern and set the rendernurse config only for the…
Browse files Browse the repository at this point in the history
… primary.
  • Loading branch information
marchermans committed Jul 28, 2024
1 parent 1225567 commit 66221c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
public abstract class RunTestScopeImpl implements RunTestScope {

private static final String DEFAULT_PATTERN = ".*";
private static final String NOTHING_DEFINED_MARKER = "__________NOTHING_DEFINED__________";

private final Project project;

Expand All @@ -26,7 +25,7 @@ public RunTestScopeImpl(Project project) {
.orElse(getMethod())
.orElse(getCategory())
.getOrNull() == null) {
return NOTHING_DEFINED_MARKER;
return DEFAULT_PATTERN;
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,9 @@ public static void setupRenderDocSupport(Project project, Run run) {

run.getDependsOn().add(setupRenderDoc);

Configuration renderNurse;
Configuration renderNurse = null;
if (run.getModSources().getPrimary().isPresent()) {
renderNurse = addLocalRenderNurse(run.getModSources().getPrimary().get());
} else {
renderNurse = null;
run.getModSources().whenSourceSetAdded(RunsUtil::addLocalRenderNurse);
}

if (renderNurse == null) {
Expand Down

0 comments on commit 66221c1

Please sign in to comment.