aboutsummaryrefslogtreecommitdiff
path: root/tests/get_logs.sh
diff options
context:
space:
mode:
authorJeffrey Zhang <zhang.lei.fly@gmail.com>2017-10-20 13:50:21 +0800
committerJeffrey Zhang <zhang.lei.fly@gmail.com>2017-10-26 09:58:29 +0800
commitcdd125117f0ca65300b608734caa2eb36779fcea (patch)
tree14c197edc7e0a7a1cdb54d2996261c5375842821 /tests/get_logs.sh
parente2301f071717deb2a708c416cea8549dbdc07b02 (diff)
downloadkolla-ansible-cdd125117f0ca65300b608734caa2eb36779fcea.tar.gz
kolla-ansible-cdd125117f0ca65300b608734caa2eb36779fcea.zip
Optimize zuul v3 jobs
- move check container failure from post.yml to run.yml - add binary related jobs - use static kolla-ansible src dir, which is helpful for kolla project to use. - generate correct /etc/hosts by using private ip address and hostname - fix the wrong api interface in global.yml file Change-Id: Idfdee6dfe18f0fa2d4f984df59b57553122ce298
Diffstat (limited to 'tests/get_logs.sh')
-rw-r--r--tests/get_logs.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/get_logs.sh b/tests/get_logs.sh
index 81961ad7c..486b54a26 100644
--- a/tests/get_logs.sh
+++ b/tests/get_logs.sh
@@ -2,22 +2,6 @@
set +o errexit
-check_failure() {
- # All docker container's status are created, restarting, running, removing,
- # paused, exited and dead. Containers without running status are treated as
- # failure. removing is added in docker 1.13, just ignore it now.
- failed_containers=$(docker ps -a --format "{{.Names}}" \
- --filter status=created \
- --filter status=restarting \
- --filter status=paused \
- --filter status=exited \
- --filter status=dead)
-
- if [[ -n "$failed_containers" ]]; then
- exit 1;
- fi
-}
-
copy_logs() {
LOG_DIR=/tmp/logs
@@ -82,4 +66,3 @@ copy_logs() {
}
copy_logs
-check_failure