From: Matthieu Moy Date: Tue, 10 Aug 2010 15:17:52 GMT Subject: [PATCH 2/2] test-lib: user-friendly alternatives to test [-d|-f|-e] Message-ID: <1281453472-29835-2-git-send-email-Matthieu.Moy@imag.fr> In-Reply-To: The helper functions are implemented, documented, and used in a few places to validate them, but not everywhere to avoid useless code churn. Signed-off-by: Matthieu Moy --- Just resending this one since I modified PATCH 1/2 and had to resolve a minor conflict. t/README | 7 +++++++ t/t3404-rebase-interactive.sh | 18 +++++++++--------- t/t3407-rebase-abort.sh | 6 +++--- t/test-lib.sh | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 12 deletions(-) diff --git a/t/README b/t/README index 0d1183c..410499a 100644 --- a/t/README +++ b/t/README @@ -467,6 +467,13 @@ library for your script to use. file. This behaves like "cmp" but produces more helpful output when the test is run with "-v" option. + - test_path_is_file [] + test_path_is_dir [] + test_path_is_missing [] + + Check whether a file/directory exists or doesn't. will + be displayed if the test fails. + - test_when_finished