From 93204bdc4ed0a83a029720b3baab338ad6490138 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 19 Dec 2014 12:18:27 -0500 Subject: [PATCH] Copy over pre/post test hooks to check-tempest-dsvm-f20-docker The trusty based check-tempest-dsvm-docker job is working fine now. Let's copy the hooks to the fedora based job as well. Change-Id: I2a561565aa0e963e9fc6797d44baba22d190b4e2 --- jenkins/jobs/nova-docker.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/jenkins/jobs/nova-docker.yaml b/jenkins/jobs/nova-docker.yaml index 72c763c800..ed18236adc 100644 --- a/jenkins/jobs/nova-docker.yaml +++ b/jenkins/jobs/nova-docker.yaml @@ -67,6 +67,21 @@ export -f gate_hook + function pre_test_hook { + if [ -f $BASE/new/nova-docker/contrib/devstack/pre_test_hook.sh ] ; then + $BASE/new/nova-docker/contrib/devstack/pre_test_hook.sh + fi + } + + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/nova-docker/contrib/devstack/post_test_hook.sh ] ; then + $BASE/new/nova-docker/contrib/devstack/post_test_hook.sh + fi + } + + export -f post_test_hook export PYTHONUNBUFFERED=true export DEVSTACK_GATE_TIMEOUT=60 export PROJECTS="stackforge/nova-docker $PROJECTS"