fwaas unit tests for the API extension are not runnable

Bug #1485795 reported by Sean M. Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Sean M. Collins

Bug Description

When running tox in the neutron-fwaas repo, none of the unit tests are executed under /tests/unit/extensions

When forcing it to run by overriding OS_TEST_PATH=./neutron_fwaas/tests/unit/extensions - the following error occurs.

scollins@Sean-Collins-MBPr15 ~/src/openstack/neutron-fwaas ⚡ » tox -e py27
py27 develop-inst-nodeps: /Users/scollins/src/openstack/neutron-fwaas
py27 runtests: PYTHONHASHSEED='483791098'
py27 runtests: commands[0] | sh tools/pretty_tox.sh
running testr
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/scollins/src/openstack/neutron-fwaas/.tox/py27/lib/python2.7/site-packages/subunit/run.py", line 149, in <module>
    main()
  File "/Users/scollins/src/openstack/neutron-fwaas/.tox/py27/lib/python2.7/site-packages/subunit/run.py", line 145, in main
    stdout=stdout, exit=False)
  File "/Users/scollins/src/openstack/neutron-fwaas/.tox/py27/lib/python2.7/site-packages/testtools/run.py", line 171, in __init__
    self.parseArgs(argv)
  File "/Users/scollins/src/openstack/neutron-fwaas/.tox/py27/lib/python2.7/site-packages/unittest2/main.py", line 113, in parseArgs
    self._do_discovery(argv[2:])
  File "/Users/scollins/src/openstack/neutron-fwaas/.tox/py27/lib/python2.7/site-packages/testtools/run.py", line 211, in _do_discovery
    super(TestProgram, self)._do_discovery(argv, Loader=Loader)
  File "/Users/scollins/src/openstack/neutron-fwaas/.tox/py27/lib/python2.7/site-packages/unittest2/main.py", line 223, in _do_discovery
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/Users/scollins/src/openstack/neutron-fwaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 364, in discover
    raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: '/Users/scollins/src/openstack/neutron-fwaas/neutron_fwaas/tests/unit/extensions'
Non-zero exit code (1) from test listing.
error: testr failed (3)
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron_fwaas/tests/unit} --list
The test run didn't actually run any tests
ERROR: InvocationError: '/bin/sh tools/pretty_tox.sh '

Tags: fwaas
tags: added: fwaas
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-fwaas (master)

Fix proposed to branch: master
Review: https://review.openstack.org/213927

Changed in neutron:
assignee: nobody → Sean M. Collins (scollins)
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-fwaas (master)

Reviewed: https://review.openstack.org/213927
Committed: https://git.openstack.org/cgit/openstack/neutron-fwaas/commit/?id=d5652debef22ae607bcfeafaec95147c68f4c874
Submitter: Jenkins
Branch: master

commit d5652debef22ae607bcfeafaec95147c68f4c874
Author: Sean M. Collins <email address hidden>
Date: Mon Aug 17 19:01:52 2015 -0400

    Make tests/unit/extensions discoverable

    Change-Id: I49ebe1eeeed011254b865290a92cecf6fdca4456
    Closes-Bug: #1485795

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: liberty-3 → 7.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.