mirror of
https://github.com/dgibson/dtc.git
synced 2026-01-22 01:30:34 -05:00
tests: Let run_tests.sh run Python tests without Makefile assistance
Currently run_tests.sh needs the $PYTHON environment variable set to correctly run pylibfdt tests. The Makefile does this for make check, but it breaks if the script is run manually. Add a fallback to handle that case. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
76b43dcbd1
commit
2b5f62d109
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,10 @@ if [ -z "$CC" ]; then
|
|||
CC=cc
|
||||
fi
|
||||
|
||||
if [ -z "$PYTHON" ]; then
|
||||
PYTHON=python3
|
||||
fi
|
||||
|
||||
# stat differs between platforms
|
||||
if [ -z "$STATSZ" ]; then
|
||||
stat --version 2>/dev/null | grep -q 'GNU'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue