Merge ~anonymouse67/review-tools:feature/lzo-script-2-update into review-tools:master

Proposed by Ian Johnson
Status: Merged
Merged at revision: 9babc667fae6b09f47a8a3f4f713f63d2ed28ca5
Proposed branch: ~anonymouse67/review-tools:feature/lzo-script-2-update
Merge into: review-tools:master
Diff against target: 35 lines (+6/-4)
1 file modified
tests/manual-lzo-part2.sh (+6/-4)
Reviewer Review Type Date Requested Status
Jamie Strandboge (community) Approve
Review via email: mp+391311@code.launchpad.net

Description of the change

Miscellaneous usability changes in running the script, but no real changes to the test logic itself so this shouldn't require re-running the script for re-validating the test results.

To post a comment you must log in.
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

LGTM. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/tests/manual-lzo-part2.sh b/tests/manual-lzo-part2.sh
index edd8237..9aa4cbc 100755
--- a/tests/manual-lzo-part2.sh
+++ b/tests/manual-lzo-part2.sh
@@ -31,7 +31,7 @@ if [ "$#" != 1 ]; then
31 exit 131 exit 1
32fi32fi
3333
34TARBALL="$1"34TARBALL=$(readlink -f "$1")
3535
36# TODO: share common snippets of this script with manual-lzo.sh ?36# TODO: share common snippets of this script with manual-lzo.sh ?
37function is_core_snap {37function is_core_snap {
@@ -118,8 +118,10 @@ for series in 16 18 20; do
118118
119 sudo "$LXC" file push review-tools.tgz "${cont_name}/root/review-tools.tgz"119 sudo "$LXC" file push review-tools.tgz "${cont_name}/root/review-tools.tgz"
120120
121 sudo "$LXC" exec "${cont_name}" -- apt update121 # sometimes apt operations fail due to apt parsing, probably a race
122 sudo "$LXC" exec "${cont_name}" -- apt upgrade -y122 # condition, but keep trying
123 sudo "$LXC" exec "${cont_name}" -- /bin/bash -c 'until apt update; do sleep 0.1; done'
124 sudo "$LXC" exec "${cont_name}" -- /bin/bash -c 'until apt upgrade -y; do sleep 0.1; done'
123125
124 # dependencies for review-tools as per the snapcraft.yaml126 # dependencies for review-tools as per the snapcraft.yaml
125 sudo "$LXC" exec "${cont_name}" -- apt install -y binutils fakeroot file libdb5.3 libmagic1 python3-magic python3-requests python3-simplejson python3-yaml squashfs-tools127 sudo "$LXC" exec "${cont_name}" -- apt install -y binutils fakeroot file libdb5.3 libmagic1 python3-magic python3-requests python3-simplejson python3-yaml squashfs-tools
@@ -205,7 +207,7 @@ done
205207
206popd208popd
207209
208echo "test done, results in $TARBALL"210echo "test done"
209211
210# reset the cleanup so we don't unnecessarily run it and exit with non-zero status212# reset the cleanup so we don't unnecessarily run it and exit with non-zero status
211trap - EXIT SIGINT SIGTERM213trap - EXIT SIGINT SIGTERM

Subscribers

People subscribed via source and target branches

to all changes: