update load-image integration test

Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
Xian Chaobo 2015-04-16 05:24:51 -04:00
parent f7d9a96785
commit 820804b108
1 changed files with 14 additions and 14 deletions

View File

@ -5,8 +5,8 @@ load helpers
IMAGE_FILE=$(mktemp)
function teardown() {
stop_manager
stop_docker
swarm_manage_cleanup
rm -f $IMAGE_FILE
}
@ -16,9 +16,9 @@ function teardown() {
docker save -o $IMAGE_FILE busybox:latest
start_docker 2
start_manager
swarm_manage
run docker_swarm -i $IMAGE_FILE
run docker_swarm load -i $IMAGE_FILE
[ "$status" -eq 0 ]
run docker -H ${HOSTS[0]} images