diff options
author | Jeff King <peff@peff.net> | 2011-09-13 12:13:58 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-13 10:11:39 -0700 |
commit | 376eb14a05f693378047eee36a10035c122f0261 (patch) | |
tree | 2eb35327a9c06e9971d9e761c184ae4a3b86e46f /t/t4013/diff.diff_--dirstat_master~1_master~2 | |
parent | branch: -v does not automatically imply --list (diff) | |
download | tgif-376eb14a05f693378047eee36a10035c122f0261.tar.xz |
t3200: clean up checks for file existence
This patch uses test_path_is_file and test_path_is_missing
instead of "test -f / ! test -f" checks. The former are more
verbose in case of failure and more precise (e.g., is_missing
will check that the entry is actually missing, not just not
a regular file).
As a bonus, this also fixes a few buggy tests that used
"test foo" instead of "test -f foo", and consequently always
reported success.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--dirstat_master~1_master~2')
0 files changed, 0 insertions, 0 deletions