Re: [PATCH 5/5] pylibfdt:tests: Extend the way how to find a Python module

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



On Mon, Feb 18, 2019 at 05:48:56PM +0100, frenzy@xxxxxxxxx wrote:
> From: Lumir Balhar <lbalhar@xxxxxxxxxx>
> 
> Python 3 C extensions have suffix containing platform, Python version
> and another details in the name so the condition has to be extended.
> 
> Signed-off-by: Lumir Balhar <lbalhar@xxxxxxxxxx>

Applied, thanks.

> ---
>  tests/run_tests.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/run_tests.sh b/tests/run_tests.sh
> index 1fa14ff..04fc1e8 100755
> --- a/tests/run_tests.sh
> +++ b/tests/run_tests.sh
> @@ -973,7 +973,7 @@ if [ -z "$TESTSETS" ]; then
>      TESTSETS="libfdt utilfdt dtc dtbs_equal fdtget fdtput fdtdump fdtoverlay"
>  
>      # Test pylibfdt if the libfdt Python module is available.
> -    if [ -f ../pylibfdt/_libfdt.so ]; then
> +    if [ -f ../pylibfdt/_libfdt.so ] || [ -f ../pylibfdt/_libfdt.cpython-3*.so ]; then
>          TESTSETS="$TESTSETS pylibfdt"
>      fi
>  fi

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux