10 Commits

Author SHA1 Message Date
Peter Pentchev
5107556a79 Actually run all the Cinder cert tests.
Change the tests to run on the tox invocation line, too, not just in
the message logged.

Change-Id: I86e02ea5a5eace92397bc18e08c494c6fd009880
2014-12-19 11:31:43 +02:00
John Griffith
19d22bd19a Change Cinder Cert script to run all Volume tests
The Cinder Cert script currently only runs the Tempest
tests tagged with volume.api, should be all Volume tests
to make sure we get things like attach and other commands
fully tested.

Change-Id: Ic15d2ad6d3616bfde4838873d0c79664b009ef1f
2014-12-09 21:50:33 -07:00
Ryan McNair
0ebf2dfe62 cinder_driver_certs.sh always passes driver
In cinder_driver_certs.sh, the tests are run and output is
piped to "tee".  Currently, checking the exit code of this
command only checks that "tee" exited properly.  Using the
pipefail option for this script will ensure the entire
pipe succeeds before passing a driver.

Change-Id: I58311aa0e2c779467d39c4477c4ea39d14eda207
Closes-Bug: #1289129
2014-03-31 16:26:56 +00:00
Ian Wienand
aee18c749b Enforce function declaration format in bash8
Check that function calls look like ^function foo {$ in bash8, and fix
all existing failures of that check.  Add a note to HACKING.rst

Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
2014-02-28 07:59:03 +11:00
Dean Troyer
d8864feae9 Fix shocco errors
Clean up comments to fix errors seen while processing with shocco

Change-Id: I0e97ad27613313f03e47c107051ea93b115d4744
2014-02-17 11:18:12 -06:00
Jenkins
2b8aae621e Merge "Added the import of lib/infra" 2014-02-15 23:21:04 +00:00
John Griffith
d6997d3176 Fix tee statement for catching tempest output
The use of exec and tee doesn't seem to be quite right, and was
unreliable in terms of catching the exit status of the tempest
test as well as not catching the output when things went wrong.

This changes the way we do the redirect and the tee to something
that should be more robust and seems to work reliably in testing.

Change-Id: Ieb9d725839fb8e3f9e2e63a2b7b2e9c7c86713a2
2014-02-13 23:00:01 +00:00
Walter A. Boring IV
75dbd9b1a3 Added the import of lib/infra
This fixes an error in the devstack/functions
setup_develop call, which tries to cd to
$REQUIREMENTS_DIR, which is created in lib/infra

Change-Id: Ie65d2ba83547acc4ea36d1191e6e90dc21da1fa7
Closes-Bug: #1276365
2014-02-04 14:56:15 -08:00
john-griffith
fe4c4f7a9e 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
2014-01-15 22:35:55 -07:00
John Griffith
4debfe2b2d Add driver_cert wrapper for cinder
This adds a simple wrapper to call tempest volume tests.
The idea is to make it easy to execute and capture results
from tempest.api.volume.test_*

Concept is for drivers in Cinder to configure cinder.conf as
needed and then run this script which will restart services and
kick off the tempest tests, and capture the output to a logfile
for submission.

To run,
1. deploy devstack as normal with tempest included in enabled_services
2. modify cinder.conf appropriately for your driver
3. execute the script devstack/driver_certs/cinder_driver_cert.sh

Change-Id: I98ec9e1e418a8416406db5e2e6ffd21992e392cf
2013-11-12 08:24:11 -07:00