summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@redhat.com>2015-05-14 21:15:40 -0700
committerJeff Peeler <jpeeler@redhat.com>2015-05-27 19:56:24 -0400
commit7d48398d4f87ad68698a9c3cd7a8bc2a3c7b1226 (patch)
treea80f8f23dbcacc79655fcdfea6441e609bf41678 /tox.ini
parentd353472857bcf9b035fd0a443227c668bd9780ec (diff)
downloadkolla-7d48398d4f87ad68698a9c3cd7a8bc2a3c7b1226.tar.gz
kolla-7d48398d4f87ad68698a9c3cd7a8bc2a3c7b1226.zip
Clean up the image functional test
1. Move setup_docker.sh to tools directory 2. Make a setup_gate.sh that installs necessary packages including docker and starts docker. 3. Add logging output. 4. Add default test timeout of 2 hours. 5. Add user to the docker group before running test cases. 6. Run image build as dockerroot group. This patch has to be one commit to fix the gate in one go. Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: I83f3cdb1dabf0dfface589c581cb22c155467acc (cherry picked from commit 78b27e3e6017ceda4e15c5b2c87516ec3750fd98)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 3 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index fbbd700b8..bda27a849 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,16 +22,17 @@ commands =
[testenv:setupenv]
whitelist_externals = bash
-commands = bash -c tests/setup_docker.sh
+commands = bash -c tests/setup_gate.sh
[testenv:images]
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = find
bash
+ sudo
commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
- testr run ^(test_images).*
+ sudo -g dockerroot testr run ^(test_images).*
[testenv:startenv]
whitelist_externals = bash