Tests: Adjust wrapper to make hook env test work
This commit is contained in:
@@ -9,7 +9,7 @@ OUT="${ORIGINALHOOK}.log.out"
|
||||
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}
|
||||
$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
|
||||
|
||||
EXITCODE=$?
|
||||
|
||||
Reference in New Issue
Block a user