Write authorized_keys in tmp/tests during tests
This should reduce the number of gitlab-shell error messages while the tests run.
This commit is contained in:
parent
b5cc813612
commit
37d6293842
|
@ -1,5 +1,6 @@
|
|||
v 7.3.0
|
||||
- Always set the 'origin' remote in satellite actions
|
||||
- Write authorized_keys in tmp/ during tests
|
||||
|
||||
v 7.2.0
|
||||
- Explore page
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace :gitlab do
|
|||
args.with_defaults(tag: 'v' + default_version, repo: "https://gitlab.com/gitlab-org/gitlab-shell.git")
|
||||
|
||||
user = Settings.gitlab.user
|
||||
home_dir = Settings.gitlab.user_home
|
||||
home_dir = Rails.env.test? ? Rails.root.join('tmp/tests') : Settings.gitlab.user_home
|
||||
gitlab_url = Settings.gitlab.url
|
||||
# gitlab-shell requires a / at the end of the url
|
||||
gitlab_url += "/" unless gitlab_url.match(/\/$/)
|
||||
|
|
Loading…
Reference in New Issue