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:
committed by
Tomas Babej
parent
f35989be0e
commit
8b91cd97a8
@@ -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})
|
||||||
|
|||||||
Reference in New Issue
Block a user