t5304: use test_path_is_* instead of "test -f"
commitf1dd90bd193637eeef772890c37afe3529a665d0
authorJeff King <peff@peff.net>
Fri, 10 Oct 2014 06:07:00 +0000 (10 02:07 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Oct 2014 18:27:07 +0000 (13 11:27 -0700)
tree08cf8958dad47bcdb34c56851c28883478145436
parent63a45136a329bab550425c3142db6071434d935e
t5304: use test_path_is_* instead of "test -f"

This is slightly more robust (checking "! test -f" would not
notice a directory of the same name, though that is not
likely to happen here). It also makes debugging easier, as
the test script will output a message on failure.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5304-prune.sh