Re: [libgpiod][PATCH 3/3] tools: tests: force bats to use tap output format to remove indirect dependency on ncurses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 12, 2023 at 4:57 AM Kent Gibson <warthog618@xxxxxxxxx> wrote:
>
> bats has an implicit depencency on ncurses, as I found when trying to
> run the tests on a minimal install that lacked ncurses.
> Rather than make the dependency explicit, force the output formatting to
> use the TAP format which does not require ncurses.
>
> Signed-off-by: Kent Gibson <warthog618@xxxxxxxxx>
> ---
>  tools/gpio-tools-test | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/gpio-tools-test b/tools/gpio-tools-test
> index ed39ed5..441ec66 100755
> --- a/tools/gpio-tools-test
> +++ b/tools/gpio-tools-test
> @@ -54,4 +54,4 @@ modprobe gpio-sim || die "unable to load the gpio-sim module"
>  mountpoint /sys/kernel/config/ > /dev/null 2> /dev/null || \
>         die "configfs not mounted at /sys/kernel/config/"
>
> -exec $BATS_PATH $SOURCE_DIR/$BATS_SCRIPT ${1+"$@"}
> +exec $BATS_PATH -F tap $SOURCE_DIR/$BATS_SCRIPT ${1+"$@"}
> --
> 2.40.1
>

That's interesting. I will backport it as this affects the recipe in
meta-openembedded an every distro that wants to package it with
run-time dependencies satisfied.

Thanks. I applied all three patches.

Bart




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux