
Somehow in devstack job all the packages listed in test-requirements are not installed. There is an explanation [1] for this in the dev list. So as suggested by Clark Boylan in the thread, just install them in pre_test_hook. [1] http://www.mail-archive.com/openstack-dev@lists.openstack.org/msg12531.html Change-Id: I39cdfb4544fd81db79c02909962f9d4bf1ed879f
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
- job:
|
|
name: gate-solum-devstack-dsvm
|
|
node: devstack-precise
|
|
|
|
wrappers:
|
|
- timeout:
|
|
timeout: 65
|
|
fail: true
|
|
- timestamps
|
|
|
|
builders:
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_TIMEOUT=60
|
|
export ENABLED_SERVICES=solum
|
|
export PROJECTS="stackforge/solum"
|
|
|
|
function pre_test_hook {
|
|
# Install packages from test-requirements.txt
|
|
sudo pip install -r /opt/stack/new/solum/test-requirements.txt
|
|
|
|
# Install solum devstack integration
|
|
SOLUM_BASE=/opt/stack/new/solum/contrib/devstack
|
|
DEVSTACK_BASE=/opt/stack/new/devstack
|
|
cp $SOLUM_BASE/lib/* $DEVSTACK_BASE/lib
|
|
cp $SOLUM_BASE/extras.d/* $DEVSTACK_BASE/extras.d
|
|
}
|
|
export -f pre_test_hook
|
|
|
|
function post_test_hook {
|
|
cd /opt/stack/new/solum/functionaltests
|
|
./run_tests.sh
|
|
}
|
|
export -f post_test_hook
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
- link-logs
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|