diff options
author | Lars Schneider <larsxschneider@gmail.com> | 2015-11-27 10:15:13 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2015-11-28 12:04:28 -0500 |
commit | bbfe5302d50891233cef645b74324c01d8b004c8 (patch) | |
tree | ae2cb801a2170163d529e51f92a7ae707c152bb9 /builtin/commit.c | |
parent | 0c83680e9c047170614fb08ef222ea4f460e514d (diff) | |
download | git-bbfe5302d50891233cef645b74324c01d8b004c8.tar.gz |
implement test_might_fail using a refactored test_must_fail
Add an (optional) first parameter "ok=<special case>" to test_must_fail
and return success for "<special case>". Add "success" as
"<special case>" and use it to implement "test_might_fail". This removes
redundancies in test-lib-function.sh.
You can pass multiple <special case> arguments divided by comma (e.g.
"test_must_fail ok=success,something")
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions