Enforce Python 3 in test_hooks/wrapper

This change was not included in the previous commit because the sed
command I used included the `/usr/bin/env` path to ensure I don't
replace any occurences of the word `python` which I did not wish to
replace.
This commit is contained in:
Max Rossmannek 2020-11-26 23:35:50 +01:00 committed by Tomas Babej
parent 6d2ecaa15c
commit 2931be613b
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -6,7 +6,7 @@ IN="${ORIGINALHOOK}.log.in"
OUT="${ORIGINALHOOK}.log.out" OUT="${ORIGINALHOOK}.log.out"
# Let it know that we were executed # Let it know that we were executed
echo "% Called at $(python -c 'import time; print(time.time())') with '$@'" >> ${IN} echo "% Called at $(python3 -c 'import time; print(time.time())') with '$@'" >> ${IN}
# Log what arrives via stdin to ${IN} and what comes via stdout to ${OUT} # Log what arrives via stdin to ${IN} and what comes via stdout to ${OUT}
$ORIGINALHOOK "$@" < <(tee -a ${IN}) > >(tee -a ${OUT}) $ORIGINALHOOK "$@" < <(tee -a ${IN}) > >(tee -a ${OUT})