Unittest - Hook testing, fixed a few mistakes

This commit is contained in:
Renato Alves
2015-01-19 14:54:11 +00:00
parent 6fdf0738a7
commit db78851b40
2 changed files with 14 additions and 11 deletions

View File

@@ -2,11 +2,11 @@
SELF=$(basename $0)
ORIGINALHOOK="$(dirname $0)/original_${SELF}"
IN="${NEWFILE}.log.in"
OUT="${NEWFILE}.log.out"
IN="${ORIGINALHOOK}.log.in"
OUT="${ORIGINALHOOK}.log.out"
# Let it know that we were executed
echo "% Called at $(date +%s%N)" >> ${OUT}
echo "% Called at $(date +%s%N)" >> ${IN}
$ORIGINALHOOK < <(tee -a ${IN}) > >(tee -a ${OUT})