Skip to content

feat(check): turn off harness for specific command tests#9

Merged
avidal merged 1 commit into
mainfrom
avidal/check-no-harness
May 8, 2026
Merged

feat(check): turn off harness for specific command tests#9
avidal merged 1 commit into
mainfrom
avidal/check-no-harness

Conversation

@avidal

@avidal avidal commented May 8, 2026

Copy link
Copy Markdown
Collaborator

Some tests, especially for "fat" images that contain their own tools,
may need to use those tools instead of the harness/toybox variants.
While the test could override $PATH via command.*.env or
tare.runtime.env, that's brittle and requires knowing what the
original $PATH should be.

Instead, callers can now specify harness:false in a command test to
strip the tare harness out of the $PATH before executing that specific
test.

Some tests, especially for "fat" images that contain their own tools,
may need to use those tools instead of the harness/toybox variants.
While the test *could* override `$PATH` via `command.*.env` or
`tare.runtime.env`, that's brittle and requires knowing what the
original `$PATH` should be.

Instead, callers can now specify `harness:false` in a command test to
strip the tare harness out of the `$PATH` before executing that specific
test.
@avidal avidal requested a review from a team as a code owner May 8, 2026 15:23
@avidal avidal merged commit 6217cf1 into main May 8, 2026
5 checks passed
@avidal avidal deleted the avidal/check-no-harness branch May 8, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant