Browse Source

pylibfdt:tests: Extend the way how to find a Python module

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@redhat.com>
Message-Id: <20190218164856.23861-5-frenzy@frenzy.cz>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
Lumir Balhar 6 years ago committed by David Gibson
parent
commit
a4b1a307ff
  1. 2
      tests/run_tests.sh

2
tests/run_tests.sh

@ -973,7 +973,7 @@ if [ -z "$TESTSETS" ]; then @@ -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

Loading…
Cancel
Save