Failed to execute run_tests.sh

Bug #1152476 reported by Feilong Wang

This bug report was converted into a question: question #223776: Failed to execute run_tests.sh.

22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

When execute <nova>/run_tests.sh on Ubuntu 12.10 64bit, I got bolew error:

stacker@stacker-ThinkPad-X230:~/workspace_community/nova$ ./run_tests.sh -N
Running ` python setup.py testr --slowest --testr-args='--subunit '`
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'testr'

----------------------------------------------------------------------
Ran 0 tests in 0.214s

OK
cp: cannot stat `.testrepository/-1': No such file or directory

Tags: test unit
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Does "./runtests.sh -V" work?

Changed in nova:
status: New → Incomplete
Revision history for this message
Feilong Wang (flwang) wrote :

No. Run "./run_tests.sh -V", got below error:

flwang@flwang-ThinkPad-X230:~/workspace_community/nova$ ./run_tests.sh -V
Running `tools/with_venv.sh python setup.py testr --slowest --testr-args='--subunit '`
Traceback (most recent call last):
  File "/usr/bin/subunit2pyunit", line 23, in <module>
    from subunit import DiscardStream, ProtocolTestCase, TestProtocolServer
ImportError: No module named subunit
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'mainainer'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'mainainer_email'
  warnings.warn(msg)
Traceback (most recent call last):
  File "setup.py", line 75, in <module>
    py_modules=[])
  File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 221, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 245, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 586, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 831, in best_match
    return self.obtain(req, installer) # try and download/install
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 843, in obtain
    return installer(requirement)
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 295, in fetch_build_egg
    return cmd.easy_install(req)
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 598, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 630, in install_item
    self.process_distribution(spec, dist, deps)
  File "/home/flwang/workspace_community/nova/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 661, in process_distribution
    log.info(self.installation_report(requirement, dist, *info))
  File "/usr/lib/python2.7/distutils/log.py", line 40, in info
    self._log(INFO, msg, args)
  File "/usr/lib/python2.7/distutils/log.py", line 31, in _log
    stream.flush()
IOError: [Errno 32] Broken pipe
cp: cannot stat `.testrepository/-1': No such file or directory
flwang@flwang-ThinkPad-X230:~/workspace_community/nova$

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

flwang,

please try to remove directories named .venv .tox .testrepository and try again?

-- dims

Changed in nova:
status: Incomplete → Invalid
Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Hi,

It is to be noted that with a version of testrepository that is too low, we have such error. Version 0.0.14 doesn't produce that output for me.

Thomas

Revision history for this message
wang jian (wangjian011) wrote :

Maybe this bug is duplicated with https://bugs.launchpad.net/nova/+bug/1099659

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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