rpm-software-management / dnf-plugins-extras

repository for DNF community plugins
GNU General Public License v2.0
65 stars 62 forks source link

Set installroot in tmp dir to avoid problems with unittests #186

Closed j-mracek closed 4 years ago

j-mracek commented 4 years ago

====================================================================== ERROR: test_transaction_download (tests.test_system_upgrade.DownloadCommandTestCase)

Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/dnf/rpm/init.py", line 39, in detect_releasever idx = ts.dbMatch('provides', distroverpkg) File "/usr/lib/python3.8/site-packages/dnf/rpm/transaction.py", line 59, in dbMatch mi = self.ts.dbMatch(*args, **kwds) _rpm.error: rpmdb open failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/builddir/build/BUILD/dnf-plugins-extras-4.0.12/tests/test_system_upgrade.py", line 420, in test_transaction_download self.command.transaction_download() File "/builddir/build/BUILDROOT/dnf-plugins-extras-4.0.12-1.fc32.x86_64/usr/lib/python3.8/site-packages/dnf-plugins/system_upgrade.py", line 714, in transaction_download system_ver = dnf.rpm.detect_releasever(self.base.conf.installroot) File "/usr/lib/python3.8/site-packages/dnf/rpm/init.py", line 41, in detect_releasever raise dnf.exceptions.Error('Error: %s' % str(e)) dnf.exceptions.Error: Error: rpmdb open failed

====================================================================== ERROR: test_transaction_download_offline_upgrade (tests.test_system_upgrade.DownloadCommandTestCase)

Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/dnf/rpm/init.py", line 39, in detect_releasever idx = ts.dbMatch('provides', distroverpkg) File "/usr/lib/python3.8/site-packages/dnf/rpm/transaction.py", line 59, in dbMatch mi = self.ts.dbMatch(*args, **kwds) _rpm.error: rpmdb open failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/builddir/build/BUILD/dnf-plugins-extras-4.0.12/tests/test_system_upgrade.py", line 450, in test_transaction_download_offline_upgrade self.command.transaction_download() File "/builddir/build/BUILDROOT/dnf-plugins-extras-4.0.12-1.fc32.x86_64/usr/lib/python3.8/site-packages/dnf-plugins/system_upgrade.py", line 714, in transaction_download system_ver = dnf.rpm.detect_releasever(self.base.conf.installroot) File "/usr/lib/python3.8/site-packages/dnf/rpm/init.py", line 41, in detect_releasever raise dnf.exceptions.Error('Error: %s' % str(e)) dnf.exceptions.Error: Error: rpmdb open failed

lukash commented 4 years ago

@rh-atomic-bot r+

rh-atomic-bot commented 4 years ago

:pushpin: Commit d01b4b9 has been approved by lukash

rh-atomic-bot commented 4 years ago

:hourglass: Testing commit d01b4b9 with merge 262d310...

rh-atomic-bot commented 4 years ago

:broken_heart: Test failed - status-papr