From: Tom Rini <trini@konsulko.com>
To: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Cc: u-boot@lists.denx.de, Bin Meng <bmeng.cn@gmail.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>,
Simon Glass <sjg@chromium.org>,
Marek Vasut <marek.vasut@gmail.com>
Subject: Re: [PATCH 2/4] Azure: Add fuse device for sandbox test.py tests
Date: Wed, 9 Jun 2021 16:59:22 -0400 [thread overview]
Message-ID: <20210609205922.GA5699@bill-the-cat> (raw)
In-Reply-To: <20210604190207.44805-3-alpernebiyasak@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]
On Fri, Jun 04, 2021 at 10:02:04PM +0300, Alper Nebi Yasak wrote:
> The EFI secure boot and capsule test setups need to prepare disk images
> for their tests using virt-make-fs, which requires access to the host
> fuse device. This is not exposed to the docker container by default and
> has to be added explicitly.
>
> Since these tests are marked to run only on the sandbox board, add the
> fuse device only when testing on sandbox.
>
> Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
> ---
>
> .azure-pipelines.yml | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
> index 35ab7f30b276..a4d796c41895 100644
> --- a/.azure-pipelines.yml
> +++ b/.azure-pipelines.yml
> @@ -318,7 +318,15 @@ jobs:
> # as sandbox testing need create files like spi flash images, etc.
> # (TODO: clean up this in the future)
> chmod 777 .
> - docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh
> + # Some EFI tests need extra docker args to run
> + set --
> + if [[ "${TEST_PY_BD}" == "sandbox" ]]; then
> + # virt-make-fs needs the fuse device
> + if modprobe fuse; then
> + set -- "$@" --device /dev/fuse:/dev/fuse
> + fi
> + fi
> + docker run "$@" -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh
Thanks for addressing these issues. For this specific patch, I think I
would prefer to just always pass in /dev/fuse with a comment about
needing it for some tests.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2021-06-09 20:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-04 19:02 [PATCH 0/4] Fix CIs skipping filesystem, EFI secure boot and EFI capsule tests Alper Nebi Yasak
2021-06-04 19:02 ` [PATCH 1/4] tools: docker: Install a readable kernel for libguestfs-tools Alper Nebi Yasak
2021-06-05 0:21 ` Heinrich Schuchardt
2021-06-05 5:17 ` AKASHI Takahiro
2021-06-04 19:02 ` [PATCH 2/4] Azure: Add fuse device for sandbox test.py tests Alper Nebi Yasak
2021-06-09 20:59 ` Tom Rini [this message]
2021-06-04 19:02 ` [PATCH 3/4] Azure: Add loop devices and CAP_SYS_ADMIN " Alper Nebi Yasak
2021-06-04 19:02 ` [PATCH 4/4] Azure/GitLab: Install a readable kernel for libguestfs-tools Alper Nebi Yasak
2021-06-05 0:26 ` Heinrich Schuchardt
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=20210609205922.GA5699@bill-the-cat \
--to=trini@konsulko.com \
--cc=alpernebiyasak@gmail.com \
--cc=bmeng.cn@gmail.com \
--cc=daniel.schwierzeck@gmail.com \
--cc=marek.vasut@gmail.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/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