diff options
Diffstat (limited to 'keama/tests/runone.sh')
-rw-r--r-- | keama/tests/runone.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/keama/tests/runone.sh b/keama/tests/runone.sh index 4fbcfb5f..e47f6034 100644 --- a/keama/tests/runone.sh +++ b/keama/tests/runone.sh @@ -38,6 +38,7 @@ fi options="" dual=0 +hook=0 case $trail in '') dual=1;; @@ -45,7 +46,7 @@ case $trail in 6) options="-6";; F) options="-4 -r fatal";; P) options="-4 -r pass";; - L) options="-4 -l ${HOOK:-/path/}";; + L) options="-4 -l ${HOOK:-/path/}"; hook=1;; *) echo "unrecognized trail '$trail' in '$full'" >&2; exit 1;; esac @@ -94,6 +95,10 @@ else fi fi +if [ $hook -eq 1 ]; then + sed s,/path/,${HOOK:-/path/}, < ${expected}L > $expected +fi + if [ $errcase -ne 0 ]; then cat $out | head -1 | diff --brief - $expected if [ $? -ne 0 ]; then |