From fe4c4f7a9e6d1a4f26c67b8e1609fc5e80c5ef83 Mon Sep 17 00:00:00 2001 From: john-griffith Date: Wed, 15 Jan 2014 11:24:03 -0700 Subject: [PATCH] Update cinder cert script to use run_tempest Changes to tempest run_tests.sh (commit: 17520e49a7e69b3817856a739121a1fb2906f2cc) breaks the cinder_driver_cert script. A backward compatible run_tempest.sh script was added, so for now we should update the cinder_driver_cert script to use that Change-Id: I611a01dd4788ae01da8a6167a530f9e44733dfc6 Closes-Bug: #1269531 --- driver_certs/cinder_driver_cert.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/driver_certs/cinder_driver_cert.sh b/driver_certs/cinder_driver_cert.sh index 18bef8b3b5..edcc6d4800 100755 --- a/driver_certs/cinder_driver_cert.sh +++ b/driver_certs/cinder_driver_cert.sh @@ -2,6 +2,22 @@ # **cinder_cert.sh** +# This script is a simple wrapper around the tempest volume api tests +# It requires that you have a working and functional devstack install +# and that you've enabled your device driver by making the necessary +# modifications to /etc/cinder/cinder.conf + +# This script will refresh your openstack repo's and restart the cinder +# services to pick up your driver changes. +# please NOTE; this script assumes your devstack install is functional +# and includes tempest. A good first step is to make sure you can +# create volumes on your device before you even try and run this script. + +# It also assumes default install location (/opt/stack/xxx) +# to aid in debug, you should also verify that you've added +# an output directory for screen logs: +# SCREEN_LOGDIR=/opt/stack/screen-logs + CERT_DIR=$(cd $(dirname "$0") && pwd) TOP_DIR=$(cd $CERT_DIR/..; pwd) @@ -73,9 +89,9 @@ start_cinder sleep 5 # run tempest api/volume/test_* -log_message "Run the actual tempest volume tests (run_tests.sh -N tempest.api.volume.test_*)...", True +log_message "Run the actual tempest volume tests (./tools/pretty_tox.sh api.volume_*)...", True exec 2> >(tee -a $TEMPFILE) -`./run_tests.sh -N tempest.api.volume.test_*` +`./tools/pretty_tox.sh api.volume` if [[ $? = 0 ]]; then log_message "CONGRATULATIONS!!! Device driver PASSED!", True log_message "Submit output: ($TEMPFILE)"