From: Henning Schild <henning.schild@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>
Cc: isar-users@googlegroups.com
Subject: Re: [PATCH v2 12/15] CI: Allow example module checking disabling
Date: Wed, 25 Jan 2023 09:29:09 +0100 [thread overview]
Message-ID: <20230125092909.14390494@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20230124204558.31025-13-amikan@ilbers.de>
Am Tue, 24 Jan 2023 22:45:55 +0200
schrieb Anton Mikanovich <amikan@ilbers.de>:
> If the target do not have example-module package compiled it can fail
> on startvm test currently. Provide internal testsuite API for skipping
> this test.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
> testsuite/cibuilder.py | 6 ++++--
> testsuite/citest.py | 2 +-
> 2 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py
> index d229ecb..f373829 100755
> --- a/testsuite/cibuilder.py
> +++ b/testsuite/cibuilder.py
> @@ -209,7 +209,8 @@ class CIBuilder(Test):
>
> return env['LAYERDIR_' + layer].strip('"')
>
> - def vm_start(self, arch='amd64', distro='buster',
> enforce_pcbios=False):
> + def vm_start(self, arch='amd64', distro='buster',
> enforce_pcbios=False,
> + skip_modulecheck=False):
> time_to_wait = self.params.get('time_to_wait', default=60)
>
> self.log.info('===================================================')
> @@ -291,7 +292,8 @@ class CIBuilder(Test):
> if os.path.exists(output_file) and
> os.path.getsize(output_file) > 0: with open(output_file, "rb") as f1:
> data = f1.read()
> - if module_output in data and login_prompt in data:
> + if (module_output in data or skip_modulecheck) \
> + and login_prompt in data:
This all looks a little weird to be honest. And will likely be replaced
once we ssh in and "lsmod" anyhow. Maybe we need this in the meantime.
> if resize_output:
> if resize_output in data:
> return
> diff --git a/testsuite/citest.py b/testsuite/citest.py
> index 2c17361..1b4336c 100755
> --- a/testsuite/citest.py
> +++ b/testsuite/citest.py
> @@ -69,7 +69,7 @@ class DevTest(CIBaseTest):
>
> def test_dev_run_arm_bullseye(self):
> self.init()
> - self.vm_start('arm', 'bullseye')
> + self.vm_start('arm', 'bullseye', skip_modulecheck=True)
Not sure why this one does not have or support the module, maybe adding
the module if possible would be better.
Henning
> class ReproTest(CIBaseTest):
>
next prev parent reply other threads:[~2023-01-25 8:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-24 20:45 [PATCH v2 00/15] Add developers test Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 01/15] CI: Enable downloads dir sharing Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 02/15] CI: Add IMAGE_INSTALL override Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 03/15] CI: Add developers test Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 04/15] CI: Remove duplicated targets Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 05/15] CI: move to avocado to 99.0 Anton Mikanovich
2023-01-25 7:10 ` Henning Schild
2023-01-25 7:42 ` Anton Mikanovich
2023-01-25 11:39 ` Henning Schild
2023-01-24 20:45 ` [PATCH v2 06/15] CI: fix shell coding style Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 07/15] CI: install qemu-system when qemu testing is requested Anton Mikanovich
2023-01-25 8:18 ` Henning Schild
2023-01-24 20:45 ` [PATCH v2 08/15] testsuite: remove tests from "fast" set Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 09/15] CI: Get rid of setting cross from outside Anton Mikanovich
2023-01-25 8:22 ` Henning Schild
2023-01-24 20:45 ` [PATCH v2 10/15] CI: Make cross compile to be default Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 11/15] CI: Get rid of setting repro from outside Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 12/15] CI: Allow example module checking disabling Anton Mikanovich
2023-01-25 8:29 ` Henning Schild [this message]
2023-01-24 20:45 ` [PATCH v2 13/15] testsuite: Fix terminal broken after run test executed Anton Mikanovich
2023-01-24 20:45 ` [PATCH v2 14/15] CI: Update testsuite documentation Anton Mikanovich
2023-01-25 8:31 ` Henning Schild
2023-01-24 20:45 ` [PATCH v2 15/15] CI: Add single target test case Anton Mikanovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230125092909.14390494@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox