autotests: Fix TestXdgShellClientRules

TestXdgShellClientRules implicitly assumes that the kwinrc config is
referenced only by the RuleBook object.

However, after changing the default placement policy in the
WaylandTestApplication, that's no longer the case. The kwinApp() object
now also holds a reference to the main config file. Because of that,
previous window rules leak to next tests, which breaks them.

In order to address that issue, this change makes TestXdgShellClientRules
open a separate config and wipe it clean after each test run. Not great,
but there doesn't seem to be other way around with current KSharedConfig
api.
This commit is contained in:
Vlad Zahorodnii 2021-12-10 11:17:43 +02:00
parent eb080395ef
commit ea7779de42

File diff suppressed because it is too large Load diff