Skip to content

Prevent empty array return for qa_tests

Andrejs Cunskis requested to merge andrey-fix-knapsack-pattern into master

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.

Edited by Andrejs Cunskis

Merge request reports