run_tests.sh broken on mac OS X

Bug #1391858 reported by Doug Wiegley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Doug Wiegley

Bug Description

(Please assign this to me, as I have https://review.openstack.org/#/c/106237/ out for review.)

$ ./run_tests.sh
grep: repetition-operator operand invalid
usage: dirname path
Running `tools/with_venv.sh python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args='--subunit '`
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/dougw/work/a10/neutron/neutron/openstack/common/lockutils.py", line 31, in <module>
    from neutron.openstack.common import fileutils
  File "neutron/openstack/common/fileutils.py", line 21, in <module>
    from oslo.utils import excutils
ImportError: No module named utils

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
Running flake8 ...

Doug Wiegley (dougwig)
Changed in neutron:
assignee: nobody → Doug Wiegley (dougwig)
Changed in neutron:
status: New → In Progress
Kyle Mestery (mestery)
Changed in neutron:
importance: Undecided → Medium
milestone: none → kilo-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/106237
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=5a438746580f5f626ddaf743905a91292cb3aa71
Submitter: Jenkins
Branch: master

commit 5a438746580f5f626ddaf743905a91292cb3aa71
Author: Doug Wiegley <email address hidden>
Date: Thu Jul 10 20:44:21 2014 -0600

    run_tests.sh OS X script fixes

    On OS X, '*' is not a valid grep modified for '[^[:space:]:]', nor is it
    necessary when the lines being checked against must be prefixed with
    neutron.tests.
    Also, dirname was being called with an empty var, without quoting, resulting
    in usage errors.

    Closes-Bug: 1391858

    Change-Id: I34ab0625a00809f68b7a44cb3a175a57ba0bd6d5

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: kilo-1 → 2015.1.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.