[PATCH 5/7] test-lib: indent and format GIT_TEST_TEE_OUTPUT_FILE code
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Mar 9, 2021, 16:02 UTC
- Message-ID
- <20210309160219.13779-6-avarab@gmail.com>
- In-Reply-To
- <87r1kzj7xi.fsf@evledraar.gmail.com>
Change the indentation and formatting of the GIT_TEST_TEE_OUTPUT_FILE code block added in 44138559e8 (test-lib.sh: optionally output to test-results/$TEST.out, too, 2009-02-04).
This brings it in line with the general style in our test library, and makes it easier to read modifications of it in subsequent commits.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- t/test-lib.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh index 8562b11b817..aa7068b06b6 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -361,8 +361,10 @@ then # from any previous runs. >"$GIT_TEST_TEE_OUTPUT_FILE" - (GIT_TEST_TEE_STARTED=done ${TEST_SHELL_PATH} "$0" "$@" 2>&1; - echo $? >"$TEST_RESULTS_BASE.exit") | tee -a "$GIT_TEST_TEE_OUTPUT_FILE" + ( + GIT_TEST_TEE_STARTED=done ${TEST_SHELL_PATH} "$0" "$@" 2>&1 + echo $? >"$TEST_RESULTS_BASE.exit" + ) | tee -a "$GIT_TEST_TEE_OUTPUT_FILE" test "$(cat "$TEST_RESULTS_BASE.exit")" = 0 exit fi
-- 2.31.0.rc1.210.g0f8085a843c