Skip to content

Capture expect step output for check verification (#609)#609

Closed
isaac-fletcher wants to merge 2 commits intofacebookincubator:mainfrom
isaac-fletcher:export-D97167049
Closed

Capture expect step output for check verification (#609)#609
isaac-fletcher wants to merge 2 commits intofacebookincubator:mainfrom
isaac-fletcher:export-D97167049

Conversation

@isaac-fletcher
Copy link
Contributor

@isaac-fletcher isaac-fletcher commented Mar 19, 2026

Summary:

Add capability to the expect block to capture output for usage in checks.

Previously, any output from expect was redirected to stdout and not captured. This change enables you to reference expect step output with the $forge.steps.<name>.stdout or in an output check block.

Additionally cleaned up the output from the error case where it will no longer output the whole step output.

Reviewed By: RoboticPrism

Differential Revision: D97167049

@meta-codesync
Copy link

meta-codesync bot commented Mar 19, 2026

@isaac-fletcher has exported this pull request. If you are a Meta employee, you can view the originating Diff in D97167049.

isaac-fletcher added a commit to isaac-fletcher/TTPForge that referenced this pull request Mar 20, 2026
)

Summary:

Add capability to the expect block to capture output for usage in checks.

Previously, any output from expect was redirected to stdout and not captured. This change enables you to reference expect step output with the `$forge.steps.<name>.stdout` or in an output check block.

Additionally cleaned up the output from the error case where it will no longer output the whole step output.

Reviewed By: RoboticPrism

Differential Revision: D97167049
@meta-codesync meta-codesync bot changed the title Capture expect step output for check verification Capture expect step output for check verification (#609) Mar 20, 2026
…ubator#610)

Summary:

Update check block to default to local as opposed to inheriting from the step. Remote block is an explicit requirement for running commands remotely.

This change is to match the overal format of the other steps in remote.

Reviewed By: RoboticPrism

Differential Revision: D97167047
)

Summary:

Add capability to the expect block to capture output for usage in checks.

Previously, any output from expect was redirected to stdout and not captured. This change enables you to reference expect step output with the `$forge.steps.<name>.stdout` or in an output check block.

Additionally cleaned up the output from the error case where it will no longer output the whole step output.

Reviewed By: RoboticPrism

Differential Revision: D97167049
@meta-codesync
Copy link

meta-codesync bot commented Mar 20, 2026

This pull request has been merged in 8ad1fdd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant