Fix SH install script exiting too early#5147
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/secret-hiding #5147 +/- ##
======================================================
Coverage 82.73% 82.73%
======================================================
Files 251 251
Lines 27522 27522
======================================================
Hits 22771 22771
Misses 4751 4751
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
roypat
left a comment
There was a problem hiding this comment.
Sorry, I didn't quite understand what this fixes. So now we don't fail in the variable declaration, but rather 3 lines further down? What is the benefit of that? :o
Previously it would fail if vmlinux wasn't present even if vmlinuz is. After this the script will pass through successfully with vmlinuz |
Previously this would fail on x86 as we set -e. By setting the || true this means the script will continue. The grubby step next will fail if it failed to find the image. Signed-off-by: Jack Thomson <jackabt@amazon.com>
dada83c to
86ed07f
Compare
roypat
left a comment
There was a problem hiding this comment.
thanks for explaining! Bash can be so baffling 😂
c1479ae
into
firecracker-microvm:feature/secret-hiding
Previously this would fail on x86 as we set -e. By setting the || echo this means the script will continue. The grubby step next will fail if it failed to find the image.
Changes
...
Reason
...
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.PR Checklist
tools/devtool checkstyleto verify that the PR passes theautomated style checks.
how they are solving the problem in a clear and encompassing way.
in the PR.
CHANGELOG.md.Runbook for Firecracker API changes.
integration tests.
TODO.rust-vmm.