git-p4: add trap to kill p4d on test exit
commitdfe90e8b528be4d9668b1bdc6329f8227cbf307a
authorLars Schneider <larsxschneider@gmail.com>
Thu, 19 Nov 2015 08:58:10 +0000 (19 09:58 +0100)
committerJeff King <peff@peff.net>
Fri, 20 Nov 2015 13:02:06 +0000 (20 08:02 -0500)
tree988c31df81e859f216302cca2c0e7d401e042cff
parent842addef70e41f8bb8a16f4d9084432301c3f50f
git-p4: add trap to kill p4d on test exit

Sometimes the "prove" test runner hangs on test exit because p4d is
still running. Add a trap to always kill "p4d" on test exit.

You can reproduce the problem by commenting "P4D_TIMEOUT" in
"lib-git-p4.sh" and running "prove ./t9800-git-p4-basic.sh".

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
t/lib-git-p4.sh