Skip to content

Commit

Permalink
fix incidental bugs in ci test
Browse files Browse the repository at this point in the history
1. sleep for a while after restart containerd
2. only show detailed logs when test failed

Signed-off-by: Yiqun Leng <yqleng@linux.alibaba.com>
  • Loading branch information
yqleng1987 authored and imeoer committed Jul 10, 2023
1 parent a508ddd commit 67a7add
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/bats/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ endif

ci:
bash -f ./install_bats.sh
bats --show-output-of-passing-tests --formatter tap build_docker_image.bats
bats --show-output-of-passing-tests --formatter tap compile_nydusd.bats
bats --show-output-of-passing-tests --formatter tap compile_ctr_remote.bats
bats --show-output-of-passing-tests --formatter tap compile_nydus_snapshotter.bats
bats --show-output-of-passing-tests --formatter tap run_container_with_rafs.bats
bats --show-output-of-passing-tests --formatter tap run_container_with_zran.bats
bats --show-output-of-passing-tests --formatter tap run_container_with_rafs_and_compile_linux.bats
bats --formatter tap build_docker_image.bats
bats --formatter tap compile_nydusd.bats
bats --formatter tap compile_ctr_remote.bats
bats --formatter tap compile_nydus_snapshotter.bats
bats --formatter tap run_container_with_rafs.bats
bats --formatter tap run_container_with_zran.bats
bats --formatter tap run_container_with_rafs_and_compile_linux.bats
1 change: 1 addition & 0 deletions tests/bats/common_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ version = 2
disable_snapshot_annotations = false
EOF
systemctl restart containerd
sleep 3
}

0 comments on commit 67a7add

Please sign in to comment.