diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-21 02:01:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-21 02:01:21 +0300 |
commit | 13810b39c4b177b36d5d629923c2a595f7fa6509 (patch) | |
tree | 428913f5bb99a98378dfc6671c8e4a64b7ae124f /scripts/rspec_helpers.sh | |
parent | 6438df3a1e0fb944485cebf07976160184697d72 (diff) |
Add latest changes from gitlab-org/gitlab@13-8-stable-ee
Diffstat (limited to 'scripts/rspec_helpers.sh')
-rw-r--r-- | scripts/rspec_helpers.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/rspec_helpers.sh b/scripts/rspec_helpers.sh index 85d7dcec476..d9957fb6ced 100644 --- a/scripts/rspec_helpers.sh +++ b/scripts/rspec_helpers.sh @@ -75,6 +75,16 @@ function rspec_simple_job() { bin/rspec -Ispec -rspec_helper --color --format documentation --format RspecJunitFormatter --out junit_rspec.xml ${rspec_opts} } +function rspec_db_library_code() { + local db_files="spec/lib/gitlab/database/ spec/support/helpers/database/" + + if [[ -d "ee/" ]]; then + db_files="${db_files} ee/spec/lib/gitlab/database/ ee/spec/lib/ee/gitlab/database_spec.rb" + fi + + rspec_simple_job "-- ${db_files}" +} + function rspec_paralellized_job() { read -ra job_name <<< "${CI_JOB_NAME}" local test_tool="${job_name[0]}" |