Learn more about these different git repos.
Other Git URLs
detox fails to run tests, these two error are reported. Fix these tests in order to work well with detox.
detox
====================================================================== ERROR: test_import (test_cli.TestImportSrpm) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cqi/projects/redhat/rhpkg/code/rpkg/tests/test_cli.py", line 1179, in setUp self.build.make() File "/home/cqi/projects/redhat/rhpkg/code/rpkg/.tox/py36/lib/python3.6/site-packages/rpmfluff.py", line 241, in make self.do_make() File "/home/cqi/projects/redhat/rhpkg/code/rpkg/.tox/py36/lib/python3.6/site-packages/rpmfluff.py", line 310, in do_make log = check_output(command).splitlines(True) File "/usr/lib64/python3.6/subprocess.py", line 336, in check_output **kwargs).stdout File "/usr/lib64/python3.6/subprocess.py", line 418, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['rpmbuild', '--define', '_topdir /home/cqi/projects/redhat/rhpkg/code/rpkg/test-rpmbuild-docpkg-0.2-1', '--define', '_rpmfilename %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm', '-ba', '--target', 'x86_64', 'test-rpmbuild-docpkg-0.2-1/docpkg.spec']' returned non-zero exit status 1. -------------------- >> begin captured stdout << --------------------- test-rpmbuild-docpkg-0.2-1/docpkg.spec --------------------- >> end captured stdout << ----------------------
====================================================================== ERROR: test_import (test_cli.TestImportSrpm) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/cqi/projects/redhat/rhpkg/code/rpkg/tests/test_cli.py", line 1230, in test_import self.assert_import_srpm(self.chaos_repo) File "/home/cqi/projects/redhat/rhpkg/code/rpkg/tests/test_cli.py", line 1209, in assert_import_srpm cli.import_srpm() File "/home/cqi/projects/redhat/rhpkg/code/rpkg/pyrpkg/cli.py", line 1367, in import_srpm uploadfiles = self.cmd.import_srpm(self.args.srpm) File "/home/cqi/projects/redhat/rhpkg/code/rpkg/pyrpkg/__init__.py", line 1541, in import_srpm raise rpkgError('File not found.') pyrpkg.errors.rpkgError: File not found. -------------------- >> begin captured logging << -------------------- git.cmd: DEBUG: Popen(['git', 'diff', '--cached', '--abbrev=40', '--full-index', '--raw'], cwd=/tmp/rpkg-tests-chaos-repo-t10jmms2, universal_newlines=False, shell=None) git.cmd: DEBUG: Popen(['git', 'diff', '--abbrev=40', '--full-index', '--raw'], cwd=/tmp/rpkg-tests-chaos-repo-t10jmms2, universal_newlines=False, shell=None) --------------------- >> end captured logging << ---------------------
This problem is not a big deal. However, if fixed, it would be good for running tests faster in parallel with detox.
Commit f90de9b relates to this ticket
Commit cc16c18 relates to this ticket
This can be closed now, right?
Metadata Update from @cqi: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.