author | Jeff King <peff@peff.net> | |
Tue, 13 Sep 2011 16:13:58 +0000 (12:13 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 13 Sep 2011 17:11:39 +0000 (10:11 -0700) | ||
commit | 376eb14a05f693378047eee36a10035c122f0261 | |
tree | 2eb35327a9c06e9971d9e761c184ae4a3b86e46f | tree | snapshot |
parent | 7b787599e4f45784c36e82030d0f6bae72817bfc | commit | diff |
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>
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>
t/t3200-branch.sh | diff | blob | history |