Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
d2425716
Commit
d2425716
authored
May 16, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE backport for "Use gitlab-elasticsearch-indexer in tests"
parent
112193e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
GITLAB_ELASTICSEARCH_INDEXER_VERSION
GITLAB_ELASTICSEARCH_INDEXER_VERSION
+1
-0
spec/support/helpers/test_env.rb
spec/support/helpers/test_env.rb
+13
-1
No files found.
GITLAB_ELASTICSEARCH_INDEXER_VERSION
0 → 100644
View file @
d2425716
1.1.0
spec/support/helpers/test_env.rb
View file @
d2425716
...
@@ -135,7 +135,7 @@ module TestEnv
...
@@ -135,7 +135,7 @@ module TestEnv
def
clean_gitlab_test_path
def
clean_gitlab_test_path
Dir
[
TMP_TEST_PATH
].
each
do
|
entry
|
Dir
[
TMP_TEST_PATH
].
each
do
|
entry
|
if
File
.
basename
(
entry
)
=~
/\A(gitlab-(test|test_bare|test-fork|test-fork_bare))\z/
unless
test_dirs
.
include?
(
File
.
basename
(
entry
))
FileUtils
.
rm_rf
(
entry
)
FileUtils
.
rm_rf
(
entry
)
end
end
end
end
...
@@ -312,6 +312,18 @@ module TestEnv
...
@@ -312,6 +312,18 @@ module TestEnv
private
private
# These are directories that should be preserved at cleanup time
def
test_dirs
@test_dirs
||=
%w[
gitaly
gitlab-shell
gitlab-test
gitlab-test_bare
gitlab-test-fork
gitlab-test-fork_bare
]
end
def
factory_repo_path
def
factory_repo_path
@factory_repo_path
||=
Rails
.
root
.
join
(
'tmp'
,
'tests'
,
factory_repo_name
)
@factory_repo_path
||=
Rails
.
root
.
join
(
'tmp'
,
'tests'
,
factory_repo_name
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment