Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: new test for udisks2 interface #5645

Merged
merged 5 commits into from Aug 16, 2018

Conversation

sergiocazzolato
Copy link
Collaborator

No description provided.

Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Looks goood. Once question about the PATH being used.


echo "Check we can mount/unmount a block device using the snap"
# create a 10M filesystem in /opt
dd if=/dev/zero of=/opt/dev0-fake0 bs=1M count=10
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is /opt being used here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agree with @mvo5 /opt seems odd here, could you use PWD instead?

snap disconnect test-snapd-udisks2:udisks2

echo "Then the snap is not able to check udisks2 status"
if test-snapd-udisks2.udisksctl status 2>${PWD}/call.error; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

"${PWD}" or just if test-snapd-udisks2.udisksctl status 2> call.error; then ..


echo "Check we can mount/unmount a block device using the snap"
# create a 10M filesystem in /opt
dd if=/dev/zero of=/opt/dev0-fake0 bs=1M count=10
Copy link
Collaborator

Choose a reason for hiding this comment

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

Agree with @mvo5 /opt seems odd here, could you use PWD instead?

@codecov-io
Copy link

Codecov Report

Merging #5645 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5645      +/-   ##
==========================================
- Coverage   78.93%   78.92%   -0.02%     
==========================================
  Files         520      520              
  Lines       39613    39623      +10     
==========================================
+ Hits        31270    31271       +1     
- Misses       5797     5807      +10     
+ Partials     2546     2545       -1
Impacted Files Coverage Δ
cmd/snap/cmd_run.go 65.16% <0%> (-1.41%) ⬇️
overlord/hookstate/hookmgr.go 73.55% <0%> (-0.97%) ⬇️
overlord/ifacestate/handlers.go 64.88% <0%> (-0.4%) ⬇️
interfaces/builtin/hardware_observe.go 100% <0%> (ø) ⬆️
interfaces/builtin/process_control.go 100% <0%> (ø) ⬆️
interfaces/builtin/network_control.go 100% <0%> (ø) ⬆️
interfaces/builtin/camera.go 100% <0%> (ø) ⬆️
daemon/api.go 77.3% <0%> (+0.07%) ⬆️
cmd/snap/cmd_snap_op.go 79.42% <0%> (+0.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df9b4cf...30b6081. Read the comment docs.

@mvo5 mvo5 merged commit 1b00bb2 into snapcore:master Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants