Repository navigation
Tests: Use mutter dbus runner - #2965
Conversation
1803327 to
0f5cdcd
Compare
c00265c to
0c04f66
Compare
|
This should be ready now. The problem was that |
lenemter
left a comment
There was a problem hiding this comment.
The tests won't run without mutter-18-tests, so we should add it as a dependency in Meson.
@lenemter any idea how? It doesn't provide a package config or anything. The only thing I could think of is check if the file we need exists and then error if it doesn't |
|
@lenemter the last commit adds a check like this. I'm open to any other suggestions 🤷 |
By using the gala_dbus_runner we don't need dbus-run-session anymore.
By using mutter_dbusrunner we get a fully mocked environment so that the fatal logs about not being able to aquire some dbus objects aren't thrown anymore.
Now that we use mutter_dbusrunner we get a fully isolated environment allowing us to run the tests in parallel.
AFAIK there is no way to add this as a dependency otherwise so manually check if it exists and if not give a hint about the package you need to install on ubuntu.
5500b75 to
415ec43
Compare
Mutter actually provides a wrapper that takes care of setting up a suitable environment for tests. Mutter itself and gnome shell use this wrapper. It allows us to reduce our manual environment setup and makes our tests much more robust.
This is one of a few coming PRs that serve as preparation for testing the full gala.