summaryrefslogtreecommitdiff
diff options
authorMichael Vogt <mvo@ubuntu.com>2019-07-16 12:16:05 +0200
committerMichael Vogt <mvo@ubuntu.com>2019-07-16 12:16:05 +0200
commit4f6efc553db207799c09487535dc1660f278c999 (patch)
treeca6123942c3ee712bc3b6544769099064d305e96
parent9e4db361c1480b351546b06efe1a02c986ee8fb9 (diff)
tests: run apt update in lxd test to ensure packages data is up-to-datereenable-generator
-rw-r--r--tests/main/lxd/task.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/main/lxd/task.yaml b/tests/main/lxd/task.yaml
index de740801a0..5a465b961a 100644
--- a/tests/main/lxd/task.yaml
+++ b/tests/main/lxd/task.yaml
@@ -71,6 +71,9 @@ execute: |
echo "Cleanup container"
lxd.lxc exec my-ubuntu -- apt autoremove --purge -y snapd ubuntu-core-launcher
+ echo "Ensure apt is up-to-date"
+ lxd.lxc exec my-ubuntu -- apt update
+
echo "Install snapd"
lxd.lxc exec my-ubuntu -- mkdir -p "$GOHOME"
lxd.lxc file push "$GOHOME"/snapd_*.deb "my-ubuntu/$GOHOME/"