jolausa

sdnvpn

Mar 27th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1.  
  2. cat $REPOS_DIR/sdnvpn/sdnvpn/test/functest/run_tests.py
  3.  
  4. #!/bin/python
  5.  
  6. def main():
  7. logger.info("bla bla bla")
  8. return 0
  9.  
  10. if __name__ == '__main__':
  11. main()
  12. ~
  13.  
  14.  
  15.  
  16. after a pip install --upgrade
  17.  
  18.  
  19.  
  20. root@9375c50d7775:~/repos/sdnvpn# functest testcase run bgpvpn -n
  21. 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'
  22. 2017-03-27 17:04:36,469 - run_tests - DEBUG - Sourcing the OpenStack RC file...
  23. 2017-03-27 17:04:36,469 - run_tests - INFO -
  24.  
  25. 2017-03-27 17:04:36,470 - run_tests - INFO - ============================================
  26. 2017-03-27 17:04:36,470 - run_tests - INFO - Running test case 'bgpvpn'...
  27. 2017-03-27 17:04:36,470 - run_tests - INFO - ============================================
  28. 2017-03-27 17:04:36,470 - run_tests - DEBUG -
  29. +======================================================================+
  30. | Testcase: bgpvpn |
  31. +======================================================================+
  32. | Description: |
  33. | Test suite from SDNVPN project. |
  34. | Criteria: status == "PASS" |
  35. | Dependencies: |
  36. | - Installer:(fuel)|(apex)|(netvirt) |
  37. | - Scenario :bgpvpn |
  38. | |
  39. +----------------------------------------------------------------------+
  40.  
  41. 2017-03-27 17:04:36,470 - run_tests - DEBUG - Sourcing the OpenStack RC file...
  42. 2017-03-27 17:04:36,550 - run_tests - INFO - run_dict={'class': 'SdnVpnTests', 'module': 'functest.opnfv_tests.features.sdnvpn'}
  43. 2017-03-27 17:04:36,551 - run_tests - INFO - run_dict['module']=functest.opnfv_tests.features.sdnvpn
  44. 2017-03-27 17:04:36,551 - run_tests - ERROR - Cannot import module functest.opnfv_tests.features.sdnvpn
  45. Traceback (most recent call last):
  46. File "/home/opnfv/repos/functest/functest/ci/run_tests.py", line 147, in run_test
  47. module = importlib.import_module(run_dict['module'])
  48. File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
  49. __import__(name)
  50. File "/usr/local/lib/python2.7/dist-packages/functest/opnfv_tests/features/sdnvpn.py", line 11, in <module>
  51. from sdnvpn.test.functest import run_tests
  52. ImportError: No module named test.functest
  53. 2017-03-27 17:04:36,551 - run_tests - INFO - Test execution time: 00:00
  54. 2017-03-27 17:04:36,551 - run_tests - ERROR - The test case 'bgpvpn' failed.
  55. 2017-03-27 17:04:36,552 - run_tests - INFO - Execution exit value: Result.EX_ERROR
  56. 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