Skip to content

Commit

Permalink
Merge pull request #4523 from giuseppe/tests-fix-runtime-flag-for-crun
Browse files Browse the repository at this point in the history
tests: change the runtime-flag test for crun
  • Loading branch information
openshift-merge-robot committed Jan 17, 2023
2 parents 39dfa73 + c0f6c6b commit c541c35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/run.bats
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 \! -e ${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 c541c35

Please sign in to comment.