1 test_expect_success 'chain-break-return-exit' '
2 case "$(git ls-files)" in
4 # LINT: broken &&-chain okay if explicit "return 1" signals failuire
5 *) echo bad one; return 1 ;;
8 case "$(git ls-files)" in
10 # LINT: broken &&-chain okay if explicit "exit 1" signals failuire
11 *) echo bad two; exit 1 ;;
14 case "$(git ls-files)" in
15 dir/two"$LF"one) echo pass both ;;
16 # LINT: broken &&-chain okay if explicit "return 1" signals failuire
17 *) echo bad; return 1 ;;
21 # LINT: broken &&-chain okay if explicit "return $?" signals failure
22 git checkout main -b $i || return $?
23 test_commit $i $i $i tag$i || return $?