aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-03-04 16:27:57 +0100
committerDundar Göc <gocdundar@gmail.com>2022-03-10 09:21:41 +0100
commitfbcbd1d05e2d51dda159d78d99e67b6041182321 (patch)
treed8667b26b90f8e937fecc9b896ffea349a572c21
parent17ecb60c58237fa4a68b95d0ef9b0a48fe0b2c4f (diff)
downloadrneovim-fbcbd1d05e2d51dda159d78d99e67b6041182321.tar.gz
rneovim-fbcbd1d05e2d51dda159d78d99e67b6041182321.tar.bz2
rneovim-fbcbd1d05e2d51dda159d78d99e67b6041182321.zip
ci: remove variable NVIM_TEST_CURRENT_SUITE
We always know where in the test we are anyway, it's just needless repetition.
-rw-r--r--ci/common/suite.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/ci/common/suite.sh b/ci/common/suite.sh
index a903f972a9..5b524efd15 100644
--- a/ci/common/suite.sh
+++ b/ci/common/suite.sh
@@ -14,16 +14,13 @@ FAIL_SUMMARY_FILE="$BUILD_DIR/.test_errors"
enter_suite() {
FAILED=0
rm -f "${END_MARKER}"
- local suite_name="$1"
- export NVIM_TEST_CURRENT_SUITE="${NVIM_TEST_CURRENT_SUITE}/$suite_name"
}
exit_suite() {
if test $FAILED -ne 0 ; then
- echo "Suite ${NVIM_TEST_CURRENT_SUITE} failed, summary:"
+ echo "Test failed, summary:"
echo "${FAIL_SUMMARY}"
fi
- export NVIM_TEST_CURRENT_SUITE="${NVIM_TEST_CURRENT_SUITE%/*}"
FAILED=0
}
@@ -33,7 +30,7 @@ fail() {
: ${message:=Test $test_name failed}
- local full_msg="$NVIM_TEST_CURRENT_SUITE|$test_name :: $message"
+ local full_msg="$test_name :: $message"
FAIL_SUMMARY="${FAIL_SUMMARY}${NL}${full_msg}"
echo "${full_msg}" >> "${FAIL_SUMMARY_FILE}"
echo "Failed: $full_msg"
@@ -67,8 +64,7 @@ run_suite() {
local command="$1"
local suite_name="$2"
- enter_suite "$suite_name"
+ enter_suite
eval "$command" || fail "$suite_name"
exit_suite
}
-