Skip to content

[1.28] Fix failures of D-Bus' Register tests#3174

Merged
ptoscano merged 2 commits intosubscription-manager-1.28from
mhorky/1.28_dbus-register-tests
Dec 5, 2022
Merged

[1.28] Fix failures of D-Bus' Register tests#3174
ptoscano merged 2 commits intosubscription-manager-1.28from
mhorky/1.28_dbus-register-tests

Conversation

@m-horky
Copy link
Contributor

@m-horky m-horky commented Dec 5, 2022

Partial backport of #3156

Our test that checks if it is possible to connect to newly created
socket started failing with 'Permission denied' when the code tried to
use it. Pytest cannot write into '/run', moving it to '/tmp' solves the
issue.

Additionally, as a result of relatively recent D-Bus implementation
changes, 'tmpdir' and 'dir' behave the same and create regular socket,
not an abstract socket. Connecting with "\0" prefix (which signifies the
abstract one) now fails and thus has been removed from the tests.

Cherry-picked from bae7ce3
@m-horky m-horky force-pushed the mhorky/1.28_dbus-register-tests branch from 08eb140 to 23248d9 Compare December 5, 2022 13:24
Copy link
Contributor

@ptoscano ptoscano left a comment

Choose a reason for hiding this comment

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

yay!

@ptoscano ptoscano merged commit 4d48528 into subscription-manager-1.28 Dec 5, 2022
@ptoscano ptoscano deleted the mhorky/1.28_dbus-register-tests branch December 5, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants