Skip to content

tests: port xdg-settings test to tests.session#8804

Merged
mvo5 merged 3 commits into
canonical:masterfrom
zyga:tweak/session-tool-porting-19
Jun 8, 2020
Merged

tests: port xdg-settings test to tests.session#8804
mvo5 merged 3 commits into
canonical:masterfrom
zyga:tweak/session-tool-porting-19

Conversation

@zyga

@zyga zyga commented Jun 3, 2020

Copy link
Copy Markdown
Contributor

This is the last of the big set of tests that spawn dbus-daemon via
dbus-launch, leaking it for the reminder of the test suite.

Signed-off-by: Zygmunt Krynicki me@zygoon.pl

This is the last of the big set of tests that spawn dbus-daemon via
dbus-launch, leaking it for the reminder of the test suite.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Comment thread tests/main/xdg-settings/task.yaml Outdated
# a user session environment there
systems: [-ubuntu-core-*]
systems:
- -amazon-linux-2-*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe a comment here why all these systems are now excluded?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Would you mind if I do a pass over all the tests that share this characteristic and unify the comments? We kind of have a patchwork of comments that try to say the same thing in different ways now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Either way is fine, I was mostly commenting because the old test just disabled ubuntu-core and the updated test disables a bunch more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done now

@bboozzoo bboozzoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with the comment @mvo5 suggested

zyga added 2 commits June 5, 2020 10:30
While working on another related test it struck me that the DISPLAY
environment variable set in the test is entirely irrelevant, because
tests.session exec gives the process a pristine environment.

Quick local confirmation shows that it is indeed not doing anything
and can be removed.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
@mvo5
mvo5 merged commit 7f1f141 into canonical:master Jun 8, 2020
@zyga
zyga deleted the tweak/session-tool-porting-19 branch June 8, 2020 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants