Skip to content

Commit

Permalink
register the target type
Browse files Browse the repository at this point in the history
  • Loading branch information
tdyas committed Nov 26, 2022
1 parent 406bbc7 commit 679b5a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/python/pants/backend/shell/goals/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from pants.engine.process import FallibleProcessResult, Process, ProcessCacheScope
from pants.engine.rules import collect_rules, rule
from pants.engine.target import Target, WrappedTarget, WrappedTargetRequest
from pants.engine.unions import UnionRule
from pants.util.frozendict import FrozenDict
from pants.util.logging import LogLevel

Expand Down Expand Up @@ -99,4 +100,5 @@ def rules():
*collect_rules(),
*shell_command.rules(),
*ShellTestRequest.rules(),
UnionRule(TestFieldSet, TestShellCommandFieldSet),
)
2 changes: 2 additions & 0 deletions src/python/pants/backend/shell/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from pants.backend.shell.target_types import (
ShellCommandRunTarget,
ShellCommandTarget,
ShellCommandTestTarget,
ShellSourcesGeneratorTarget,
ShellSourceTarget,
Shunit2TestsGeneratorTarget,
Expand All @@ -24,6 +25,7 @@ def target_types():
return [
ShellCommandTarget,
ShellCommandRunTarget,
ShellCommandTestTarget,
ShellSourcesGeneratorTarget,
Shunit2TestsGeneratorTarget,
ShellSourceTarget,
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/core/goals/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


@dataclass(frozen=True)
class TestResult(EngineAwareReturnType):
class TestResult(EngineAwareReturnType):
exit_code: int | None
stdout: str
stdout_digest: FileDigest
Expand Down

0 comments on commit 679b5a9

Please sign in to comment.