Tests: Adjust wrapper to make hook env test work

This commit is contained in:
Wilhelm Schuermann 2015-04-06 10:01:09 +02:00
parent e9b54ea74f
commit 8d5a77f490

View file

@ -9,7 +9,7 @@ OUT="${ORIGINALHOOK}.log.out"
echo "% Called at $(python -c 'import time; print(time.time())')" >> ${IN} echo "% Called at $(python -c 'import time; print(time.time())')" >> ${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})
# More on the < <() syntax at: http://tldp.org/LDP/abs/html/process-sub.html # More on the < <() syntax at: http://tldp.org/LDP/abs/html/process-sub.html
EXITCODE=$? EXITCODE=$?