aboutsummaryrefslogtreecommitdiffstats
path: root/functest/cli/commands/cli_env.py
AgeCommit message (Collapse)AuthorFilesLines
2017-06-20Remove all references to /home/opnfv/repos/functestCédric Ollivier1-2/+3
It also removes relative (and incomplete) references which could be defined in modules instead of this global configuration. Change-Id: Ie20dc3547e49b6224aa8100cd380d37b87ece5a9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-19Stop getting git data from functest dirCédric Ollivier1-11/+0
Functest is no longer a git clone. Change-Id: Ieaceacaa820e9a7a3c64e8c1fbd2a8a9321f234d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-04Use PrettyTable to show functest envCédric Ollivier1-14/+13
Change-Id: I64800ae7738e0f4215c4c2948967cf60c005032e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-18Replace CONST.* by getattribute/setattr for cliLinda Wang1-10/+10
Directories affected: - functest/cli/commands and respective unit test JIRA: FUNCTEST-796 Change-Id: I2ad721819d4b8f97098c589c3b5ed3dcc945409d Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-02-23Use new-style classes which inherit from objectLinda Wang1-1/+1
JIRA: FUNCTEST-707 Change-Id: Ieaa888375136eddbbe003a24b32bf09fd0f92923 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2016-12-23bugfix: get git branch failed when only 'git fetch' is providedSerenaFeng1-4/+8
File "/usr/local/lib/python2.7/dist-packages/functest/cli/commands/cli_env.py", line 58, in show branch = repo.head.reference File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 258, in _get_reference raise TypeError("%s is a detached symbolic reference as it points to %r" % (self, sha)) TypeError: HEAD is a detached symbolic reference as it points to '2632ba86dd920267455ee10154b9e2ce4695a889' JIRA: FUNCTEST-673 Change-Id: I2306dde254710d7d0e8a3529a19e3d8fdb6e5b02 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-22refactor cli module using new constants providerSerenaFeng1-39/+27
JIRA: FUNCTEST-673 Change-Id: I643fb16c694a8d7df45a13237f34b19a02906881 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-11-24Extracted all global parameters into functest_constants.pyhelenyao1-13/+12
JIRA: FUNCTEST-533 1. Extracted all global variables into functest_constants.py and updated all affected areas accordingly 2. Used os.path.join to replace '/' to come up with the path for better cross-platform support and improve the path accuracy 3. Removed unused variables 4. Updated the hardcoded path in Dockerfile by using variable reference 5. Removed "/" ending from all path variables 6. Updated the unit test Change-Id: Ib30a81d1f0c83fbaef042d63c187c27bd18301bb Signed-off-by: helenyao <yaohelan@huawei.com>
2016-11-10change path for python ci filesMorgan Richomme1-1/+2
JIRA: FUNCTEST-525 Change-Id: I6b09eaec55e42a3ee1474b21bc7ed87a71118e60 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-09Repo structure modificationMorgan Richomme1-0/+102
- create functest subdirectory - rename unit tests - adapt path in exec and config files JIRA: FUNCTEST-525 Change-Id: Ifd5c6edfb5bda1b09f82848e2269ad5fbeb84d0a Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>