This is to avoid dependency on fabutils to setup test environment and to
make contrail-test self sustained.
Added tools/configure.py which accept test directory and
contrail_fab_path as parameters and generate sanity_params.ini and
sanity_testbed.json from testbed.
modified run_tests.sh to check if $config_file (default to
sanity_params.ini) exists and if not, run tools/configure.py to generate
both sanity_params.ini and sanity_testbed.json. It also modified to
accept one more parameter --contrail-fab-path, with default to
/opt/contrail/utils so that one can provide fab path in case of using
different path.
Reviewed: https:/ /review. opencontrail. org/16039 github. org/Juniper/ contrail- test/commit/ a6a4e89cdd662c2 9371ea1eaa7ff17 099e450300
Committed: http://
Submitter: Zuul
Branch: master
commit a6a4e89cdd662c2 9371ea1eaa7ff17 099e450300
Author: hkumarmk <email address hidden>
Date: Wed Dec 30 13:52:58 2015 +0530
Configure test env from run_tests.sh itself
This is to avoid dependency on fabutils to setup test environment and to
make contrail-test self sustained.
Added tools/configure.py which accept test directory and
contrail_fab_path as parameters and generate sanity_params.ini and
sanity_testbed.json from testbed.
modified run_tests.sh to check if $config_file (default to testbed. json. It also modified to fab-path, with default to
sanity_params.ini) exists and if not, run tools/configure.py to generate
both sanity_params.ini and sanity_
accept one more parameter --contrail-
/opt/contrail/utils so that one can provide fab path in case of using
different path.
Change-Id: I0abc675ee59474 c1131135266da64 12f8a77d24e
Fixes-Bug: #1530051