X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=doctor_tests%2Fscenario%2F__init__.py;h=4278bb26ea7378a17c8c272dd2dd5a3938bada68;hb=8298cd6f93c39bd2077d71ece1af93e6d51286c0;hp=9e7cd11dfa74b5ded4469a226929a64c05911011;hpb=8b4fa81e06057e2e0fbda2071c6fbf46cda7a45f;p=doctor.git diff --git a/doctor_tests/scenario/__init__.py b/doctor_tests/scenario/__init__.py index 9e7cd11d..4278bb26 100644 --- a/doctor_tests/scenario/__init__.py +++ b/doctor_tests/scenario/__init__.py @@ -6,12 +6,20 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +import os + from oslo_config import cfg OPTS = [ cfg.StrOpt('test_case', - default='all', - help='the name of test case', + default=os.environ.get('TEST_CASE', 'fault_management'), + choices=['all', 'fault_management', 'maintenance'], + help="A name of test case to be executed," + " choices are 'all', 'fault_management' or 'maintenance'." + " Set 'all' to execute all the test cases existing in" + " this repo. Default is 'fault_management'. Another test" + " case can be specified only if a function named" + " test_() was implemented in DoctorTest.", required=False), ]