summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLumir Balhar <lbalhar@redhat.com>2019-02-18 17:48:56 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2019-02-19 16:07:58 +1100
commita4b1a307ff3a1ae7ca9d4a8ac212025ab07f17eb (patch)
tree5c2b44f0385eb89b529f97f85ca4e4f2ed0af31d
parent625dd8aaf20f8fc403c30385c9a1d423fb8e3957 (diff)
downloaddevice-tree-compiler-a4b1a307ff3a1ae7ca9d4a8ac212025ab07f17eb.tar.gz
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>
-rwxr-xr-xtests/run_tests.sh2
1 files changed, 1 insertions, 1 deletions
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