Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set installroot in Python unit tests #775

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

j-mracek
Copy link
Contributor

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

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  rpm-software-management#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
Copy link
Contributor

@kontura kontura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@kontura
Copy link
Contributor

kontura commented Jul 26, 2023

Thanks!

@kontura kontura added this pull request to the merge queue Jul 26, 2023
Merged via the queue into rpm-software-management:main with commit 33c14a3 Jul 26, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants