diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-20 12:46:28 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-20 12:49:08 +0100 |
commit | 6c8f2e7d78b1fe280588dc91beae90cdf36fcd49 (patch) | |
tree | d2d9f30c090daf38395820163d4133b2c7ba825c /test/rules-test.sh | |
parent | c6be83c16d605fb2e66b2a5a8ff0f4a7a6e0e1e4 (diff) |
test: Use configured Python
Don't hardcode "python" or /usr/bin/python, but use the configured $(PYTHON).
Diffstat (limited to 'test/rules-test.sh')
-rwxr-xr-x | test/rules-test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rules-test.sh b/test/rules-test.sh index 47d42cb3fa..219575360e 100755 --- a/test/rules-test.sh +++ b/test/rules-test.sh @@ -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'` |