ci: remove unnecessary END_MARKER variable (#22171)

This commit is contained in:
dundargoc
2023-02-08 16:21:50 +01:00
committed by GitHub
parent 3074ae6971
commit 0fc9a232e0
2 changed files with 3 additions and 12 deletions

View File

@@ -1,8 +1,6 @@
# Test success marker. If END_MARKER file exists, we know that all tests # If FAIL_SUMMARY_FILE exists we know that some tests failed, this file will
# finished. If FAIL_SUMMARY_FILE exists we know that some tests failed, this # contain information about failed tests. Build is considered successful if
# file will contain information about failed tests. Build is considered # tests ended without any of them failing.
# successful if tests ended without any of them failing.
END_MARKER="$BUILD_DIR/.tests_finished"
FAIL_SUMMARY_FILE="$BUILD_DIR/.test_errors" FAIL_SUMMARY_FILE="$BUILD_DIR/.test_errors"
fail() { fail() {
@@ -28,9 +26,5 @@ ended_successfully() {
return 1 return 1
fi fi
if ! test -f "${END_MARKER}" ; then
echo 'ended_successfully called before end marker was touched'
return 1
fi
return 0 return 0
} }

View File

@@ -35,8 +35,6 @@ build_nvim() {
cd "${CI_BUILD_DIR}" cd "${CI_BUILD_DIR}"
} }
rm -f "$END_MARKER"
# Run all tests (with some caveats) if no input argument is given # Run all tests (with some caveats) if no input argument is given
if (($# == 0)); then if (($# == 0)); then
tests=('build_nvim') tests=('build_nvim')
@@ -58,7 +56,6 @@ for i in "${tests[@]}"; do
eval "$i" || fail "$i" eval "$i" || fail "$i"
done done
touch "${END_MARKER}"
ended_successfully ended_successfully
if [[ -s "${GCOV_ERROR_FILE}" ]]; then if [[ -s "${GCOV_ERROR_FILE}" ]]; then