init can't find testr when run in venv without activating
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Undecided
|
Matthew Treinish |
Bug Description
When I install tempest to a virtualenv and then run tempest init in the venv without activating it, the command fails because it can't find the testr executable.
Maybe this is `working as designed` but maybe then tempest should not work rather than failing with an obscure error.
Here's the traceback:
$ ./tempest2/
...
2016-10-13 18:30:20.148 18443 ERROR tempest [-] [Errno 2] No such file or directory
2016-10-13 18:30:20.148 18443 ERROR tempest Traceback (most recent call last):
2016-10-13 18:30:20.148 18443 ERROR tempest File "/home/
2016-10-13 18:30:20.148 18443 ERROR tempest result = cmd.run(
2016-10-13 18:30:20.148 18443 ERROR tempest File "/home/
2016-10-13 18:30:20.148 18443 ERROR tempest return self.take_
2016-10-13 18:30:20.148 18443 ERROR tempest File "/home/
2016-10-13 18:30:20.148 18443 ERROR tempest self.create_
2016-10-13 18:30:20.148 18443 ERROR tempest File "/home/
2016-10-13 18:30:20.148 18443 ERROR tempest subprocess.
2016-10-13 18:30:20.148 18443 ERROR tempest File "/usr/lib/
2016-10-13 18:30:20.148 18443 ERROR tempest return Popen(*popenargs, **kwargs).wait()
2016-10-13 18:30:20.148 18443 ERROR tempest File "/usr/lib/
2016-10-13 18:30:20.148 18443 ERROR tempest errread, errwrite)
2016-10-13 18:30:20.148 18443 ERROR tempest File "/usr/lib/
2016-10-13 18:30:20.148 18443 ERROR tempest raise child_exception
2016-10-13 18:30:20.148 18443 ERROR tempest OSError: [Errno 2] No such file or directory
Fix proposed to branch: master /review. openstack. org/386195
Review: https:/