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: fix autopkgtest failures in cosmic #5666
Conversation
The most recent autopkgtest run in cosmic had some issues that are fixed here.
Codecov Report
@@ Coverage Diff @@
## master #5666 +/- ##
=======================================
Coverage 78.96% 78.96%
=======================================
Files 522 522
Lines 39711 39711
=======================================
Hits 31358 31358
Misses 5807 5807
Partials 2546 2546 Continue to review full report at Codecov.
|
@@ -55,6 +55,10 @@ ensure_file_exists_backup_real() { | |||
if [ -f "$file" ]; then | |||
mv "$file" "$file.back" | |||
fi | |||
# ensure the parent dir is available | |||
if [ ! -d "$(dirname $file)" ]; then | |||
mkdir -p "$(dirname $file)" |
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.
We could just call mkdir -p ...
since that's exactly what it means anyway. Not a blocker, just calling it out.
# profile="snap.test-snapd-eds.calendar" pid=19219 comm="calendar" | ||
# family="unix" sock_type="stream" protocol=0 requested_mask="send | ||
# receive connect" denied_mask="send connect" addr=none | ||
# peer_addr="@/tmp/dbus-5FUilMiW8U" peer="unconfined" |
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.
This looks like a bug. I'll add a card for that to my queue.
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 first comment done by zyga, but the change LGTM. Thanks for this
Some conflicts in this branch. |
The most recent autopkgtest run in cosmic had some issues that are
fixed here.