Skip to content

Commit

Permalink
tests: change the runtime-flag test for crun
Browse files Browse the repository at this point in the history
crun might not print any debugging message, so change the runtime-flag
test to use --log=log-file and test it was created.

Closes: containers#4503

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Jan 17, 2023
1 parent 39dfa73 commit f74c2ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,10 @@ _EOF

if [ -n "$(command -v crun)" ]; then
found_runtime=y
run_buildah run --runtime=crun --runtime-flag=debug $cid true
assert "$output" != "" "Output from running 'true' with --runtime-flag=debug"
run_buildah run --runtime=crun --runtime-flag=log=${TEST_SCRATCH_DIR}/oci-log $cid true
if test -ne ${TEST_SCRATCH_DIR}/oci-log; then
die "the expected file ${TEST_SCRATCH_DIR}/oci-log was not created"
fi
fi

if [ -z "${found_runtime}" ]; then
Expand Down

0 comments on commit f74c2ef

Please sign in to comment.