summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Wise <phil@advancedtelematic.com>2018-06-15 09:48:32 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2018-07-02 10:51:03 +0200
commit4067c543901526d1d039ba97af6550de48b5b423 (patch)
treef1bce75b3840b4612259f3745a7f041526fd9228
parent045ab4d6b4eb58c34a80786736bb802d0d95a18d (diff)
downloadmeta-updater-4067c543901526d1d039ba97af6550de48b5b423.tar.gz
aktualizr: support check-discovery and fix secondary tests.
Cherry-pick of 78422f6ca6e5cca90e33ad49aa1b39bb25c527b3 from master. Original commit message follows: Compatibility with latest aktualizr Note that the HsmTests still sometimes fail
-rw-r--r--lib/oeqa/selftest/cases/updater.py2
-rwxr-xr-xrecipes-sota/aktualizr/aktualizr_git.bb9
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/oeqa/selftest/cases/updater.py b/lib/oeqa/selftest/cases/updater.py
index 190d85d..08fb696 100644
--- a/lib/oeqa/selftest/cases/updater.py
+++ b/lib/oeqa/selftest/cases/updater.py
@@ -554,7 +554,7 @@ class SecondaryTests(OESelftestTestCase):
554 554
555 def test_secondary_listening(self): 555 def test_secondary_listening(self):
556 print('Checking aktualizr-secondary service is listening') 556 print('Checking aktualizr-secondary service is listening')
557 stdout, stderr, retcode = self.qemu_command('echo test | nc localhost 9030') 557 stdout, stderr, retcode = self.qemu_command('aktualizr-check-discovery')
558 self.assertEqual(retcode, 0, "Unable to connect to secondary") 558 self.assertEqual(retcode, 0, "Unable to connect to secondary")
559 559
560 560
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb
index a2d03f2..a6e7dd2 100755
--- a/recipes-sota/aktualizr/aktualizr_git.bb
+++ b/recipes-sota/aktualizr/aktualizr_git.bb
@@ -15,6 +15,9 @@ RDEPENDS_${PN}_append_class-target = "${@bb.utils.contains('SOTA_CLIENT_FEATURES
15RDEPENDS_${PN}_append_class-target = " ${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER', True) == 'u-boot', 'u-boot-fw-utils', '')}" 15RDEPENDS_${PN}_append_class-target = " ${@oe.utils.ifelse(d.getVar('OSTREE_BOOTLOADER', True) == 'u-boot', 'u-boot-fw-utils', '')}"
16RDEPENDS_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'ubootenv', ' aktualizr-uboot-env-rollback', '', d)} " 16RDEPENDS_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'ubootenv', ' aktualizr-uboot-env-rollback', '', d)} "
17 17
18RDEPENDS_${PN}_append_class-target = " ${PN}-tools "
19RDEPENDS_${PN}-secondary_append_class-target = " ${PN}-tools "
20
18PV = "1.0+git${SRCPV}" 21PV = "1.0+git${SRCPV}"
19PR = "7" 22PR = "7"
20 23
@@ -85,7 +88,7 @@ do_install_append_class-native () {
85 install -m 0644 ${B}/src/sota_tools/garage-sign/lib/* ${D}${libdir} 88 install -m 0644 ${B}/src/sota_tools/garage-sign/lib/* ${D}${libdir}
86} 89}
87 90
88PACKAGES =+ " ${PN}-examples ${PN}-host-tools ${PN}-secondary " 91PACKAGES =+ " ${PN}-examples ${PN}-host-tools ${PN}-tools ${PN}-secondary "
89 92
90FILES_${PN} = " \ 93FILES_${PN} = " \
91 ${bindir}/aktualizr \ 94 ${bindir}/aktualizr \
@@ -116,6 +119,10 @@ FILES_${PN}-host-tools = " \
116 ${libdir}/sota/sota_uboot_env.toml \ 119 ${libdir}/sota/sota_uboot_env.toml \
117 " 120 "
118 121
122FILES_${PN}-tools = " \
123 ${bindir}/aktualizr-check-discovery \
124 "
125
119FILES_${PN}-secondary = " \ 126FILES_${PN}-secondary = " \
120 ${bindir}/aktualizr-secondary \ 127 ${bindir}/aktualizr-secondary \
121 ${libdir}/sota/sota_secondary.toml \ 128 ${libdir}/sota/sota_secondary.toml \