mirror of
https://github.com/systemd/systemd
synced 2024-07-22 02:34:54 +00:00
test: Use configured Python
Don't hardcode "python" or /usr/bin/python, but use the configured $(PYTHON).
This commit is contained in:
parent
c6be83c16d
commit
6c8f2e7d78
|
@ -149,6 +149,7 @@ check_DATA =
|
|||
tests=
|
||||
manual_tests =
|
||||
if ENABLE_TESTS
|
||||
export PYTHON
|
||||
noinst_PROGRAMS = $(manual_tests) $(tests)
|
||||
TESTS = $(tests)
|
||||
else
|
||||
|
|
1
test/rule-syntax-check.py
Executable file → Normal file
1
test/rule-syntax-check.py
Executable file → Normal file
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/python
|
||||
# Simple udev rules syntax checker
|
||||
#
|
||||
# (C) 2010 Canonical Ltd.
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
[ -n "$srcdir" ] || srcdir=`dirname $0`/..
|
||||
|
||||
# skip if we don't have python
|
||||
type python >/dev/null 2>&1 || {
|
||||
echo "$0: No python installed, skipping udev rule syntax check"
|
||||
type ${PYTHON:-python} >/dev/null 2>&1 || {
|
||||
echo "$0: No $PYTHON installed, skipping udev rule syntax check"
|
||||
exit 0
|
||||
}
|
||||
|
||||
$srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'`
|
||||
$PYTHON $srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'`
|
||||
|
|
Loading…
Reference in a new issue