diff options
author | Phil Wise <phil@advancedtelematic.com> | 2018-03-14 16:00:53 +0100 |
---|---|---|
committer | Phil Wise <phil@advancedtelematic.com> | 2018-03-14 16:00:53 +0100 |
commit | 66a4721d0b7885a18db952d69f7ee385a95b2f2b (patch) | |
tree | 435221c02bad0e8ba4d89350d3c98efaf8be5d53 /lib | |
parent | bbce1809a921e627678947e9585ea15223b181d9 (diff) | |
download | meta-updater-66a4721d0b7885a18db952d69f7ee385a95b2f2b.tar.gz |
Add systemd socket activation for secondary
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oeqa/selftest/cases/updater.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oeqa/selftest/cases/updater.py b/lib/oeqa/selftest/cases/updater.py index a5072e8..1850d98 100644 --- a/lib/oeqa/selftest/cases/updater.py +++ b/lib/oeqa/selftest/cases/updater.py | |||
@@ -543,6 +543,11 @@ class SecondaryTests(OESelftestTestCase): | |||
543 | self.assertEqual(retcode, 0, "Unable to run aktualizr-secondary --help") | 543 | self.assertEqual(retcode, 0, "Unable to run aktualizr-secondary --help") |
544 | self.assertEqual(stderr, b'', 'Error: ' + stderr.decode()) | 544 | self.assertEqual(stderr, b'', 'Error: ' + stderr.decode()) |
545 | 545 | ||
546 | def test_secondary_listening(self): | ||
547 | print('Checking aktualizr-secondary is present') | ||
548 | stdout, stderr, retcode = self.qemu_command('echo test | nc localhost 9030') | ||
549 | self.assertEqual(retcode, 0, "Unable to connect to secondary") | ||
550 | |||
546 | def qemu_launch(efi=False, machine=None, imagename=None): | 551 | def qemu_launch(efi=False, machine=None, imagename=None): |
547 | logger = logging.getLogger("selftest") | 552 | logger = logging.getLogger("selftest") |
548 | logger.info('Running bitbake to build core-image-minimal') | 553 | logger.info('Running bitbake to build core-image-minimal') |