OSError: [Errno 2] No such file or directory while running python2 setup.py test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I was adding test subpackage in python-
/usr/bin/python2 setup.py test
DEBUG: running test
DEBUG: Traceback (most recent call last):
DEBUG: File "/usr/lib64/
DEBUG: "__main__", fname, loader, pkg_name)
DEBUG: File "/usr/lib64/
DEBUG: exec code in run_globals
DEBUG: File "/usr/lib/
DEBUG: main()
DEBUG: File "/usr/lib/
DEBUG: stdout=stdout, exit=False)
DEBUG: File "/usr/lib/
DEBUG: self.parseArgs(
DEBUG: File "/usr/lib/
DEBUG: self._do_
DEBUG: File "/usr/lib/
DEBUG: super(TestProgram, self)._
DEBUG: File "/usr/lib/
DEBUG: self.test = loader.
DEBUG: File "/usr/lib/
DEBUG: tests = list(self.
DEBUG: File "/usr/lib/
DEBUG: full_path, pattern, namespace)
DEBUG: File "/usr/lib/
DEBUG: return self.loadTestsF
DEBUG: File "/usr/lib/
DEBUG: tests.append(
DEBUG: File "/usr/lib/
DEBUG: loaded_suite = self.suiteClass
DEBUG: File "/builddir/
DEBUG: stdout=
DEBUG: File "/usr/lib64/
DEBUG: errread, errwrite)
DEBUG: File "/usr/lib64/
DEBUG: raise child_exception
DEBUG: OSError: [Errno 2] No such file or directory
DEBUG: running=
DEBUG: =======
DEBUG: FAIL: process-returncode
DEBUG: tags: worker-0
DEBUG: -------
DEBUG: Binary content:
I think test_cms is not able to find the fixtures path https:/
DEBUG: traceback (test/plain; charset="utf8")
The stack trace shows that it's failing here: https:/ /github. com/openstack/ python- keystoneclient/ blob/master/ keystoneclient/ tests/unit/ test_cms. py#L34- L35
Do you have openssl installed?