canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #01799
[Merge] ~andersson123/autopkgtest-cloud:update-deps-w-mojo-run into autopkgtest-cloud:master
Tim Andersson has proposed merging ~andersson123/autopkgtest-cloud:update-deps-w-mojo-run into autopkgtest-cloud:master.
Requested reviews:
Canonical's Ubuntu QA (canonical-ubuntu-qa)
For more details, see:
https://code.launchpad.net/~andersson123/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/454717
--
Your team Canonical's Ubuntu QA is requested to review the proposed merge of ~andersson123/autopkgtest-cloud:update-deps-w-mojo-run into autopkgtest-cloud:master.
diff --git a/mojo/manifest b/mojo/manifest
index 75f677e..1ba6ac4 100644
--- a/mojo/manifest
+++ b/mojo/manifest
@@ -3,3 +3,4 @@ secrets
bundle config=service-bundle wait=True max-wait=1200
script config=make-lxd-secgroup
script config=postdeploy
+script config=update-deps
diff --git a/mojo/update-deps b/mojo/update-deps
new file mode 100755
index 0000000..cd78376
--- /dev/null
+++ b/mojo/update-deps
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+autopkgtest_cloud_packages=$(< "${MOJO_SPEC}"/../charms/focal/autopkgtest-cloud-worker/layer.yaml yq -r '.options.basic.packages[]')
+for package in $autopkgtest_cloud_packages; do
+ juju exec --application autopkgtest-cloud-worker "apt install -y $package"
+done
+autopkgtest_cloud_packages=$(< "${MOJO_SPEC}"/../charms/focal/autopkgtest-cloud-worker/layer.yaml yq -r '.options.apt.packages[]')
+for package in $autopkgtest_cloud_packages; do
+ juju exec --application autopkgtest-cloud-worker "apt install -y $package"
+done
+
+autopkgtest_web_packages=$(< "${MOJO_SPEC}"/../charms/focal/autopkgtest-web/layer.yaml yq -r '.options.apt.packages[]')
+for package in $autopkgtest_web_packages; do
+ juju exec --application autopkgtest-web "apt install -y $package"
+done