Skip to content

Commit

Permalink
tests/int/checkpoint: check all logs for errors
Browse files Browse the repository at this point in the history
This is to help debug issue opencontainers#2805.

Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Mar 28, 2021
1 parent 346cb35 commit 62f1f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/checkpoint.bats
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ function runc_restore_with_pipes() {
echo "__runc restore $name failed (status: $ret)"
exec {err_w}>&-
cat <&${err_r}
echo "CRIU restore log errors (if any):"
grep -B 5 Error "$workdir"/restore.log || true
echo "CRIU log errors (if any):"
grep -B 5 Error "$workdir"/*.log ./image-dir/*.log || true
fail "runc restore failed"
fi

Expand Down

0 comments on commit 62f1f0e

Please sign in to comment.