dovetail tool: change function pull_image 35/31835/4
authorxudan <xudan16@huawei.com>
Mon, 27 Mar 2017 03:32:50 +0000 (03:32 +0000)
committerxudan <xudan16@huawei.com>
Thu, 30 Mar 2017 01:50:07 +0000 (01:50 +0000)
commitce896972a0b263e1d83b61f071e5ccbb945c8696
tree651e916075742d0e0a5ef1c14c5bc32636827343
parente0f4b3a6f279e8e3f4bc05307d60d6983cc60735
dovetail tool: change function pull_image

JIRA: DOVETAIL-378

1. test_runner checks the result of cmd "pull image". If fail to pull,
   then break the running.
2. pull_image will return None when there are errors, otherwise return image name.
3. if there is an old image named the same as the new one, the old one's tag
   will be changed into <none>. In this case, the old image needs to be removed.
4. if there are some containers using this old image, the remove will be skipped
   rather than logging error.

Change-Id: I940cb18911112d5e13f3c14f87ddbdbaced3538a
Signed-off-by: xudan <xudan16@huawei.com>
dovetail/container.py
dovetail/test_runner.py