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
1diff --git a/tests/manual-lzo-part2.sh b/tests/manual-lzo-part2.sh
2index edd8237..9aa4cbc 100755
3--- a/tests/manual-lzo-part2.sh
4+++ b/tests/manual-lzo-part2.sh
5@@ -31,7 +31,7 @@ if [ "$#" != 1 ]; then
6 exit 1
7 fi
8
9-TARBALL="$1"
10+TARBALL=$(readlink -f "$1")
11
12 # TODO: share common snippets of this script with manual-lzo.sh ?
13 function is_core_snap {
14@@ -118,8 +118,10 @@ for series in 16 18 20; do
15
16 sudo "$LXC" file push review-tools.tgz "${cont_name}/root/review-tools.tgz"
17
18- sudo "$LXC" exec "${cont_name}" -- apt update
19- sudo "$LXC" exec "${cont_name}" -- apt upgrade -y
20+ # sometimes apt operations fail due to apt parsing, probably a race
21+ # condition, but keep trying
22+ sudo "$LXC" exec "${cont_name}" -- /bin/bash -c 'until apt update; do sleep 0.1; done'
23+ sudo "$LXC" exec "${cont_name}" -- /bin/bash -c 'until apt upgrade -y; do sleep 0.1; done'
24
25 # dependencies for review-tools as per the snapcraft.yaml
26 sudo "$LXC" exec "${cont_name}" -- apt install -y binutils fakeroot file libdb5.3 libmagic1 python3-magic python3-requests python3-simplejson python3-yaml squashfs-tools
27@@ -205,7 +207,7 @@ done
28
29 popd
30
31-echo "test done, results in $TARBALL"
32+echo "test done"
33
34 # reset the cleanup so we don't unnecessarily run it and exit with non-zero status
35 trap - EXIT SIGINT SIGTERM

Subscribers

People subscribed via source and target branches

to all changes: