We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f34eb1d commit b2d4250Copy full SHA for b2d4250
1 file changed
tests/testrunner.sh
@@ -112,6 +112,14 @@ function testrunner::run_tests() {
112
exec 4< $test_output_file
113
114
local all_testcases=($(grep "function .*()" $testsuite | grep -o "test_[a-zA-Z_]*"))
115
+ for testcase_num in "${!all_testcases[@]}"; do
116
+ testcase="${all_testcases[$testcase_num]}"
117
+ # Make sure testcase is actually a defined function
118
+ if ! testrunner::function_declared $testcase; then
119
+ unset 'all_testcases[testcase_num]'
120
+ fi
121
+ done
122
+
123
local requested_testcases=$testcases
124
if [[ -z $testcases ]]; then
125
testcases=("${all_testcases[@]}")
0 commit comments