CargoRequirement failing on openSUSE
The is_installed
check is failing because the install_package
method failed silently.
=================================== FAILURES ===================================
______________ CargoPulldownCmarkRequirementTestCase.test_install ______________
self = <tests.CargoRequirementTest.CargoPulldownCmarkRequirementTestCase testMethod=test_install>
def test_install(self):
r = CargoRequirement('pulldown-cmark', '0.0.14')
r.install_package()
> self.assertTrue(r.is_installed())
E AssertionError: False is not true
tests/CargoRequirementTest.py:41: AssertionError
------------------------------ Captured log call -------------------------------
...
__init__.py 634 DEBUG Popen: Command('cargo install --vers 0.0.14 pulldown-cmark'), {'stderr': -1, 'stdin': None, 'stdout': -1} -> {'args': ['cargo', 'install', '--vers', '0.0.14', 'pulldown-cmark'], '_input': None, 'universal_newlines': False, '_closed_child_pipe_fds': True, 'returncode': None, '_child_created': True, 'stdout': <_io.BufferedReader name=9>, '_waitpid_lock': <_thread.lock object at 0x7f13e0a71300>, 'pid': 1483, 'stderr': <_io.BufferedReader name=12>, '_communication_started': False, 'stdin': None}
__init__.py 212 DEBUG Created thread Thread-12 as reader for Capture-15
__init__.py 234 DEBUG Capture-15: reader thread about to read line
__init__.py 216 DEBUG Capture-15: reader thread kicked off, waiting start
__init__.py 218 DEBUG Capture-15: reader thread now started
__init__.py 212 DEBUG Created thread Thread-13 as reader for Capture-16
__init__.py 234 DEBUG Capture-16: reader thread about to read line
__init__.py 216 DEBUG Capture-16: reader thread kicked off, waiting start
__init__.py 218 DEBUG Capture-16: reader thread now started
__init__.py 653 DEBUG about to wait for process
__init__.py 244 DEBUG queued chunk of length 69: b' Updating registry `https:/'
__init__.py 244 DEBUG queued chunk of length 36: b' Downloading pulldown-cmark v0'
__init__.py 244 DEBUG queued chunk of length 36: b' Installing pulldown-cmark v0'
__init__.py 244 DEBUG queued chunk of length 29: b' Downloading getopts v0.2.15\n'
__init__.py 244 DEBUG queued chunk of length 29: b' Downloading bitflags v0.8.2\n'
__init__.py 244 DEBUG queued chunk of length 29: b' Compiling bitflags v0.8.2\n'
__init__.py 244 DEBUG queued chunk of length 29: b' Compiling getopts v0.2.15\n'
__init__.py 244 DEBUG queued chunk of length 54: b"error[E0463]error[E0463]: can'"
__init__.py 244 DEBUG queued chunk of length 1: b'\n'
__init__.py 244 DEBUG queued chunk of length 38: b'error: aborting due to previou'
__init__.py 244 DEBUG queued chunk of length 1: b'\n'
__init__.py 244 DEBUG queued chunk of length 29: b": can't find crate for `std`\n"
__init__.py 244 DEBUG queued chunk of length 1: b'\n'
__init__.py 244 DEBUG queued chunk of length 38: b'error: aborting due to previou'
__init__.py 244 DEBUG queued chunk of length 1: b'\n'
__init__.py 244 DEBUG queued chunk of length 37: b'error: Could not compile `bitf'
__init__.py 244 DEBUG queued chunk of length 50: b'Build failed, waiting for othe'
__init__.py 244 DEBUG queued chunk of length 124: b'error: failed to compile `pull'
__init__.py 244 DEBUG queued chunk of length 1: b'\n'
__init__.py 244 DEBUG queued chunk of length 11: b'Caused by:\n'
__init__.py 244 DEBUG queued chunk of length 15: b' build failed\n'
__init__.py 253 DEBUG Capture-15: finished reading stream <_io.BufferedReader name=9>
__init__.py 253 DEBUG Capture-16: finished reading stream <_io.BufferedReader name=12>
__init__.py 657 DEBUG returning Command('cargo install --vers 0.0.14 pulldown-cmark') (Popen(returncode=101 stdin=None stdout=<_io.BufferedReader name=9> stderr=<_io.BufferedReader name=12>))
__init__.py 1100 DEBUG pipeline closing