Commit 74060d4
committed
t9200: make test "set -e" clean
In order to catch mistakes like misspelling "test_expect_success",
we would like to eventually be able to run our test suite with the
"-e" option on.
This test uses the usual pattern, where it
cmd ...
if test $? ...
expects cmd to be allowed to fail freely and we can act on its exit
status, which is not possible under "set -e". Rewrite it using the
common pattern:
status=0; cmd ... || status=$?
if test $status ...
which means the same thing but does not fail under "set -e".
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 946684d commit 74060d4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments