Skip to content

Add more tests for --stdin and --exec.#602

Merged
jnovy merged 1 commit intocontainers:mainfrom
jankaluza:coverage
Sep 18, 2025
Merged

Add more tests for --stdin and --exec.#602
jnovy merged 1 commit intocontainers:mainfrom
jankaluza:coverage

Conversation

@jankaluza
Copy link
Member

This commit adds few tests for --stdin and --exec and also moves some common functions from 04-runtime.bats to test-helpers.bash.

@jankaluza
Copy link
Member Author

jankaluza commented Sep 17, 2025

This is not a complete test-suite for --exec definitely. I will continue with tests for _OCI_*PIPE env variables, but I will do that in new PR, so the PRs are somehow small.

@jankaluza
Copy link
Member Author

@jnovy , can you check this one please?

@jankaluza
Copy link
Member Author

@ashley-cui, I will also keep you in a loop for these PRs, since we should work together on conmon v3.

@jankaluza
Copy link
Member Author

@jnovy , check now please :-)

@jankaluza jankaluza force-pushed the coverage branch 2 times, most recently from 374b4e6 to e34bd03 Compare September 18, 2025 07:46
# Additional conmon arguments can be passed to this function.
start_conmon_with_default_args() {
local extra_args=("$@")
timeout 10s "$CONMON_BINARY" \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While at it - would it make sense to standardize these timeouts? Not a blocker - could be done in another PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do that in my next PR. I have different timeouts there already, so I can change it all once in that next PR.

This commit adds few tests for --stdin and --exec and also moves
some common functions from 04-runtime.bats to test-helpers.bash.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
@jnovy
Copy link
Collaborator

jnovy commented Sep 18, 2025

LGTM

@jnovy jnovy merged commit 9127179 into containers:main Sep 18, 2025
32 of 34 checks passed
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.

2 participants