Set installroot in Python unit tests #775
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After we enabled action plugin in action.conf on host system, it blocks builds. The patch does not resolve not informative error.
7/15 Test #6: test_python3_libdnf .........................................***Failed 0.40 sec
....EEEE.E....................................................
ERROR: test_group_rpm_reason_change_without_id (base.test_goal.TestGoal.test_group_rpm_reason_change_without_id)
Traceback (most recent call last):
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/test/python3/libdnf5/base/test_goal.py", line 66, in test_group_rpm_reason_change_without_id
base.setup()
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/redhat-linux-build/bindings/python3/libdnf5/base.py", line 454, in setup
return _base.Base_setup(self)
^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Cannot load plugins: actions.conf
====================================================================== ERROR: test_invalid_url_goal_resolve (base.test_goal.TestGoal.test_invalid_url_goal_resolve) ---------------------------------------------------------------------- Traceback (most recent call last):
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/test/python3/libdnf5/base/test_goal.py", line 47, in test_invalid_url_goal_resolve
base.setup()
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/redhat-linux-build/bindings/python3/libdnf5/base.py", line 454, in setup
return _base.Base_setup(self)
^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Cannot load plugins: actions.conf
====================================================================== ERROR: test_log_events_wrapper (base.test_goal.TestGoal.test_log_events_wrapper) ---------------------------------------------------------------------- Traceback (most recent call last):
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/test/python3/libdnf5/base/test_goal.py", line 78, in test_log_events_wrapper
base.setup()
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/redhat-linux-build/bindings/python3/libdnf5/base.py", line 454, in setup
return _base.Base_setup(self)
^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Cannot load plugins: actions.conf
====================================================================== ERROR: test_missing_rpm_goal_resolve (base.test_goal.TestGoal.test_missing_rpm_goal_resolve) ---------------------------------------------------------------------- Traceback (most recent call last):
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/test/python3/libdnf5/base/test_goal.py", line 37, in test_missing_rpm_goal_resolve
base.setup()
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/redhat-linux-build/bindings/python3/libdnf5/base.py", line 454, in setup
return _base.Base_setup(self)
^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Cannot load plugins: actions.conf
====================================================================== ERROR: test_unsupported_argument_add_remove (base.test_goal.TestGoal.test_unsupported_argument_add_remove) ---------------------------------------------------------------------- Traceback (most recent call last):
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/test/python3/libdnf5/base/test_goal.py", line 57, in test_unsupported_argument_add_remove
base.setup()
File "/tmp/tito/rpmbuild-dnf5ite8yota/BUILD/dnf5-git-2540.4dd1be3/redhat-linux-build/bindings/python3/libdnf5/base.py", line 454, in setup
return _base.Base_setup(self)
^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Cannot load plugins: actions.conf