Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat $REPOS_DIR/sdnvpn/sdnvpn/test/functest/run_tests.py
- #!/bin/python
- def main():
- logger.info("bla bla bla")
- return 0
- if __name__ == '__main__':
- main()
- ~
- after a pip install --upgrade
- root@9375c50d7775:~/repos/sdnvpn# functest testcase run bgpvpn -n
- 2017-03-27 17:04:35,814 - functest_utils - DEBUG - Executing command: 'python /home/opnfv/repos/functest/functest/ci/run_tests.py -n -t bgpvpn'
- 2017-03-27 17:04:36,469 - run_tests - DEBUG - Sourcing the OpenStack RC file...
- 2017-03-27 17:04:36,469 - run_tests - INFO -
- 2017-03-27 17:04:36,470 - run_tests - INFO - ============================================
- 2017-03-27 17:04:36,470 - run_tests - INFO - Running test case 'bgpvpn'...
- 2017-03-27 17:04:36,470 - run_tests - INFO - ============================================
- 2017-03-27 17:04:36,470 - run_tests - DEBUG -
- +======================================================================+
- | Testcase: bgpvpn |
- +======================================================================+
- | Description: |
- | Test suite from SDNVPN project. |
- | Criteria: status == "PASS" |
- | Dependencies: |
- | - Installer:(fuel)|(apex)|(netvirt) |
- | - Scenario :bgpvpn |
- | |
- +----------------------------------------------------------------------+
- 2017-03-27 17:04:36,470 - run_tests - DEBUG - Sourcing the OpenStack RC file...
- 2017-03-27 17:04:36,550 - run_tests - INFO - run_dict={'class': 'SdnVpnTests', 'module': 'functest.opnfv_tests.features.sdnvpn'}
- 2017-03-27 17:04:36,551 - run_tests - INFO - run_dict['module']=functest.opnfv_tests.features.sdnvpn
- 2017-03-27 17:04:36,551 - run_tests - ERROR - Cannot import module functest.opnfv_tests.features.sdnvpn
- Traceback (most recent call last):
- File "/home/opnfv/repos/functest/functest/ci/run_tests.py", line 147, in run_test
- module = importlib.import_module(run_dict['module'])
- File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
- __import__(name)
- File "/usr/local/lib/python2.7/dist-packages/functest/opnfv_tests/features/sdnvpn.py", line 11, in <module>
- from sdnvpn.test.functest import run_tests
- ImportError: No module named test.functest
- 2017-03-27 17:04:36,551 - run_tests - INFO - Test execution time: 00:00
- 2017-03-27 17:04:36,551 - run_tests - ERROR - The test case 'bgpvpn' failed.
- 2017-03-27 17:04:36,552 - run_tests - INFO - Execution exit value: Result.EX_ERROR
- 2017-03-27 17:04:36,580 - functest_utils - ERROR - The command 'python /home/opnfv/repos/functest/functest/ci/run_tests.py -n -t bgpvpn' failed.
Advertisement
Add Comment
Please, Sign In to add comment