use a rc file for defining tempest version
checkout to the right tempest version read from a file Change-Id: If0173d989f1afce6c193159a5f491f5cb2b94d10
This commit is contained in:
parent
59c16e8ea3
commit
022af0fc20
1
devstack/devstackgaterc
Normal file
1
devstack/devstackgaterc
Normal file
@ -0,0 +1 @@
|
||||
export TEMPEST_VERSION=master
|
@ -47,10 +47,20 @@
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'api'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
executable: /bin/bash
|
||||
|
@ -47,10 +47,20 @@
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'api'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
executable: /bin/bash
|
||||
|
@ -47,10 +47,20 @@
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'datasources'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
executable: /bin/bash
|
||||
|
@ -47,10 +47,20 @@
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'datasources'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
executable: /bin/bash
|
||||
|
@ -45,10 +45,20 @@
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'mock'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
executable: /bin/bash
|
||||
|
@ -45,10 +45,20 @@
|
||||
export -f gate_hook
|
||||
|
||||
function post_test_hook {
|
||||
if [[ "$TEMPEST_VERSION" != "master" ]]; then
|
||||
# use vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
# which is defined in the devstackgaterc file
|
||||
|
||||
cd $BASE/new/vitrage-tempest-plugin/
|
||||
git_checkout_tag vitrage-tempest-plugin $TEMPEST_VERSION
|
||||
fi
|
||||
|
||||
source $BASE/new/vitrage-tempest-plugin/devstack/post_test_hook.sh 'mock'
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
export DEVSTACK_GATE_SETTINGS=$BASE/new/vitrage/devstack/devstackgaterc
|
||||
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
executable: /bin/bash
|
||||
|
Loading…
Reference in New Issue
Block a user