Refactoring of args and parser variable in ci/run_tests, prepare_env
authorashishk1994 <ashishk.iiit@gmail.com>
Thu, 29 Dec 2016 14:41:28 +0000 (20:11 +0530)
committerashishk1994 <ashishk.iiit@gmail.com>
Mon, 9 Jan 2017 12:27:24 +0000 (17:57 +0530)
commit47935c2fe486bce6d154589229c989271ebd0f08
treee0088f9ec955fbced98fdb3fc3edc2e910fbd330
parent254a7e643bccd48bf562f8362745783dfb9542b4
Refactoring of args and parser variable in ci/run_tests, prepare_env

Can't import run_tests in test_run_tests.py (new unit test file).
It is throwing error: nosetests: error: unrecognized arguments

It is because of declaration of parser and args which are global
in file, So to allow safe import of this file,
we need to declare it into __main__ branch.

Change-Id: Ie11ebcfd8a1b8e692bd8bf4260a54f752b67fd5e
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
functest/ci/prepare_env.py
functest/ci/run_tests.py