diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-20 15:10:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-20 15:10:59 +0300 |
commit | 34c88d512f2697cd96dd3788e8ffaf1b9c8935b4 (patch) | |
tree | e7fb4118737b248dedc4111e71fc9514490cb6ea /qa | |
parent | 9fa24e4f9c5440e2ddc27cd787df5f5e669bed25 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/tools/ci/qa_changes.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/qa/qa/tools/ci/qa_changes.rb b/qa/qa/tools/ci/qa_changes.rb index 1e3ef9e4816..91c7760933f 100644 --- a/qa/qa/tools/ci/qa_changes.rb +++ b/qa/qa/tools/ci/qa_changes.rb @@ -29,10 +29,16 @@ module QA # @return [String] def qa_tests return if mr_diff.empty? || dependency_changes + return if only_spec_changes? && mr_diff.all? { |change| change[:deleted_file] } - # make paths relative to qa directory - return changed_files&.map { |path| path.delete_prefix("qa/") }&.join(" ") if only_spec_changes? - return qa_spec_directories_for_devops_stage&.join(" ") if non_qa_changes? && mr_labels.any? + if only_spec_changes? + return mr_diff + .reject { |change| change[:deleted_file] } + .map { |change| change[:path].delete_prefix("qa/") } # make paths relative to qa directory + .join(" ") + end + + qa_spec_directories_for_devops_stage&.join(" ") if non_qa_changes? && mr_labels.any? end # Qa framework changes |