Ensure tests run through tox are using the expected Python executable (#175)
Otherwise, they are likely to use the system python.pull/178/head
parent
3e8fd37ee1
commit
2048a92303
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
PYTHON=${1:-python}
|
||||||
|
|
||||||
for x in examples/hlapi/asyncore/sync/manager/cmdgen/*.py \
|
for x in examples/hlapi/asyncore/sync/manager/cmdgen/*.py \
|
||||||
examples/hlapi/asyncore/sync/agent/ntforg/*.py \
|
examples/hlapi/asyncore/sync/agent/ntforg/*.py \
|
||||||
examples/hlapi/asyncore/manager/cmdgen/*.py \
|
examples/hlapi/asyncore/manager/cmdgen/*.py \
|
||||||
|
@ -19,7 +21,7 @@ do
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
python "${x}" | tail -50
|
$PYTHON "${x}" | tail -50
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue