From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: u-boot@lists.denx.de
Subject: [PATCH 1/2] test/py: efi_secboot should not assume sbin is in the path
Date: Thu, 23 Apr 2020 09:03:31 +0900 [thread overview]
Message-ID: <20200423000331.GA28438@laputa> (raw)
In-Reply-To: <20200422155255.148711-2-xypron.glpk@gmx.de>
Heinrich,
On Wed, Apr 22, 2020 at 05:52:54PM +0200, Heinrich Schuchardt wrote:
> For non-root users /sbin is typically not in the path. So use absolute
> paths to mkfs.vfat and sgdisk.
As Stephen pointed out somewhere else else before, you should
set $PATH properly instead of using an absolute path directly.
Thanks,
-Takahiro Akashi
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> test/py/tests/test_efi_secboot/conftest.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/test/py/tests/test_efi_secboot/conftest.py b/test/py/tests/test_efi_secboot/conftest.py
> index e542fef6e8..40cdf15bf2 100644
> --- a/test/py/tests/test_efi_secboot/conftest.py
> +++ b/test/py/tests/test_efi_secboot/conftest.py
> @@ -48,12 +48,12 @@ def efi_boot_env(request, u_boot_config):
> # create a disk/partition
> check_call('dd if=/dev/zero of=%s bs=1MiB count=%d'
> % (image_path, image_size), shell=True)
> - check_call('sgdisk %s -n 1:0:+%dMiB'
> + check_call('/sbin/sgdisk %s -n 1:0:+%dMiB'
> % (image_path, part_size), shell=True)
> # create a file system
> check_call('dd if=/dev/zero of=%s.tmp bs=1MiB count=%d'
> % (image_path, part_size), shell=True)
> - check_call('mkfs -t %s %s.tmp' % (fs_type, image_path), shell=True)
> + check_call('/sbin/mkfs.%s %s.tmp' % (fs_type, image_path), shell=True)
> check_call('dd if=%s.tmp of=%s bs=1MiB seek=1 count=%d conv=notrunc'
> % (image_path, image_path, 1), shell=True)
> check_call('rm %s.tmp' % image_path, shell=True)
> --
> 2.26.1
>
next prev parent reply other threads:[~2020-04-23 0:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-22 15:52 [PATCH 0/2] test/py: fix test_efi_secboot/conftest.py Heinrich Schuchardt
2020-04-22 15:52 ` [PATCH 1/2] test/py: efi_secboot should not assume sbin is in the path Heinrich Schuchardt
2020-04-23 0:03 ` AKASHI Takahiro [this message]
2020-05-15 15:39 ` Heinrich Schuchardt
2020-05-18 0:47 ` AKASHI Takahiro
2020-04-22 15:52 ` [PATCH 2/2] test/py: fix test_efi_secboot/conftest.py Heinrich Schuchardt
2020-04-23 0:15 ` AKASHI Takahiro
2020-04-23 7:47 ` 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=20200423000331.GA28438@laputa \
--to=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.