Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-01 15:10:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-01 15:10:48 +0300
commita21091270d45530468f8ac2f4f926fe1b9840b67 (patch)
treea641a030521f16e320f1d3559a49956f485c217f /scripts/rspec_helpers.sh
parent8700fc108e2c269a4d73530d60662a6aaff14381 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/rspec_helpers.sh')
-rw-r--r--scripts/rspec_helpers.sh16
1 files changed, 6 insertions, 10 deletions
diff --git a/scripts/rspec_helpers.sh b/scripts/rspec_helpers.sh
index 5b2c84059ee..de735e03db0 100644
--- a/scripts/rspec_helpers.sh
+++ b/scripts/rspec_helpers.sh
@@ -75,23 +75,19 @@ function crystalball_rspec_data_exists() {
compgen -G "crystalball/rspec*.yml" >/dev/null
}
-function retrieve_previous_failed_tests() {
+function retrieve_failed_tests() {
local directory_for_output_reports="${1}"
- local rspec_pg_regex="${2}"
- local rspec_ee_pg_regex="${3}"
- local pipeline_report_path="test_results/previous/test_reports.json"
-
- # Used to query merge requests. This variable reflects where the merge request has been created
- local target_project_path="${CI_MERGE_REQUEST_PROJECT_PATH}"
- local instance_url="${CI_SERVER_URL}"
+ local failed_tests_format="${2}"
+ local pipeline_index="${3}"
+ local pipeline_report_path="tmp/test_results/${pipeline_index}/test_reports.json"
echo 'Attempting to build pipeline test report...'
- scripts/pipeline_test_report_builder.rb --instance-base-url "${instance_url}" --target-project "${target_project_path}" --mr-id "${CI_MERGE_REQUEST_IID}" --output-file-path "${pipeline_report_path}"
+ scripts/pipeline_test_report_builder.rb --output-file-path "${pipeline_report_path}" --pipeline-index "${pipeline_index}"
echo 'Generating failed tests lists...'
- scripts/failed_tests.rb --previous-tests-report-path "${pipeline_report_path}" --output-directory "${directory_for_output_reports}" --rspec-pg-regex "${rspec_pg_regex}" --rspec-ee-pg-regex "${rspec_ee_pg_regex}"
+ scripts/failed_tests.rb --previous-tests-report-path "${pipeline_report_path}" --format "${failed_tests_format}" --output-directory "${directory_for_output_reports}"
}
function rspec_args() {