From 9dd37971498bc32bc8ca0e2c0cd0f68cc60c8c46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mathieu=20Gagne=CC=81?= <mgagne@iweb.com>
Date: Fri, 20 Jun 2014 13:19:42 -0400
Subject: [PATCH] Add genconfig tox job for sample config file generation

Wrap generate_sample.sh in tox. This will make sure needed
dependencies are installed prior to sample config file generation.

Change-Id: I426be3416931a385f99ca5270943a0f10c60f346
---
 tox.ini | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tox.ini b/tox.ini
index 348745b04eb..98404315a1a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -39,6 +39,10 @@ commands =
   python setup.py testr --coverage \
     --testr-args='^(?!.*test.*coverage).*$'
 
+[testenv:genconfig]
+commands =
+  bash tools/config/generate_sample.sh -b . -p cinder -o etc/cinder
+
 [testenv:venv]
 commands = {posargs}