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
tests: new test for udisks2 interface #5645
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
udisks2 daemon is needed to make udisks2 snap work.
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
No description provided.