Skip to content

tests: port snap-handle-link test to tests.session#8815

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

tests: port snap-handle-link test to tests.session#8815
mvo5 merged 2 commits into
canonical:masterfrom
zyga:tweak/session-tool-porting-21

Conversation

@zyga

@zyga zyga commented Jun 4, 2020

Copy link
Copy Markdown
Contributor

This test used DBus activation and leaves another dbus-daemon around. It
was picked up by the invariant detector.

This test is interesting because it makes it obvious why we set DISPLAY
to a fake value. I may circle back to earlier tests that have a similar
property and handle that better there.

In addition, xdg-open on the host can now correctly handle desktop files
on 16.04 so I made the test not skip that part.

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

This test used DBus activation and leaves another dbus-daemon around. It
was picked up by the invariant detector.

This test is interesting because it makes it obvious why we set DISPLAY
to a fake value. I may circle back to earlier tests that have a similar
property and handle that better there.

In addition, xdg-open on the host can now correctly handle desktop files
on 16.04 so I made the test not skip that part.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Comment thread tests/main/snap-handle-link/task.yaml
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>

# Make sure there is a default handler to open a snap package
tests.session -u test exec mkdir -p /home/test/.config
tests.session -u test exec mv /home/test/.config /home/test/.config.bak

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.

Could be a copy, but mv is ok too.

# Make sure there is a default handler to open a snap package
tests.session -u test exec mkdir -p /home/test/.config
tests.session -u test exec mv /home/test/.config /home/test/.config.bak
tests.session -u test exec mkdir -p /home/test/.config

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.

This line is not needed anymore.

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.

Just making sure there's a .config directory in case something here needs it.

@bboozzoo bboozzoo Jun 5, 2020

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.

Exactly the same thing is done in line 14.

Edit: heh, misread it.

@mvo5
mvo5 merged commit 915ac76 into canonical:master Jun 8, 2020
@zyga
zyga deleted the tweak/session-tool-porting-21 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