Prevent empty array return for qa_tests
What does this MR do and why?
Make sure qa_tests
do not return empty array. This can happen when stage_specs
method doesn't find any of the stage specific specs which in turn will lead to setting KNAPSACK_TEST_FILE_PATTERN
variable to {}
which will lead to executing suites with no tests. Example: https://gitlab.com/gitlab-org/gitlab/-/jobs/5723239698
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Andrejs Cunskis