Skip to content

Commit

Permalink
tests: add debug message to check return code
Browse files Browse the repository at this point in the history
Lets add this message to make sure sh is starting properly.

Signed-off-by: Beraldo Leal <bleal@redhat.com>
  • Loading branch information
beraldoleal committed May 31, 2024
1 parent f91fbef commit 9171821
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/runk/runk-tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ stop_container() {

@test "run ps command" {
sudo ctr t exec --detach --exec-id id1 "${CONTAINER_ID}" sh

return_code=$?
echo "ctr t exec sh return: ${return_code}"

# Give some time for the sh process to start within the container.
sleep 5
ps_out="$(sudo ctr t ps ${CONTAINER_ID})" || die "ps command failed"
Expand Down

0 comments on commit 9171821

Please sign in to comment.