From 049ed04471c248e89df980f97dbe332bc1857443 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sun, 1 Feb 2015 06:23:34 +0000 Subject: [PATCH] Unittest - Document the magic line in wrapper.sh --- test/test_hooks/wrapper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_hooks/wrapper.sh b/test/test_hooks/wrapper.sh index 2d61d86a5..86a8513d4 100644 --- a/test/test_hooks/wrapper.sh +++ b/test/test_hooks/wrapper.sh @@ -8,7 +8,9 @@ OUT="${ORIGINALHOOK}.log.out" # Let it know that we were executed echo "% Called at $(date +%s%N)" >> ${IN} +# Log what arrives via stdin to ${IN} and what comes via stdout to ${OUT} $ORIGINALHOOK < <(tee -a ${IN}) > >(tee -a ${OUT}) +# More on the < <() syntax at: http://tldp.org/LDP/abs/html/process-sub.html EXITCODE=$? echo "! Exit code: ${EXITCODE}" >> ${OUT}