tests: remove wait_for_container from checkpoint.bats

It isn't required there, all operations what are called are synchronous.

Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Andrei Vagin 2017-06-10 02:49:40 +03:00
parent a541df7cb7
commit 76d87976d9
1 changed files with 5 additions and 17 deletions
tests/integration

View File

@ -21,12 +21,7 @@ function teardown() {
runc run -d --console-socket $CONSOLE_SOCKET test_busybox
[ "$status" -eq 0 ]
# check state
wait_for_container 15 1 test_busybox
runc state test_busybox
[ "$status" -eq 0 ]
[[ "${output}" == *"running"* ]]
testcontainer test_busybox running
for i in `seq 2`; do
# checkpoint the running container
@ -40,19 +35,12 @@ function teardown() {
[ "$status" -ne 0 ]
# restore from checkpoint
(
runc --criu "$CRIU" restore -d --console-socket $CONSOLE_SOCKET test_busybox
[ "$status" -eq 0 ]
) &
runc --criu "$CRIU" restore -d --console-socket $CONSOLE_SOCKET test_busybox
[ "$status" -eq 0 ]
# check state
wait_for_container 15 1 test_busybox
# busybox should be back up and running
testcontainer test_busybox running
done
# busybox should be back up and running
runc state test_busybox
[ "$status" -eq 0 ]
[[ "${output}" == *"running"* ]]
}
@test "checkpoint --pre-dump and restore" {