BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4be8b9d1
Commit
4be8b9d1
authored
Nov 30, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gitaly-test-home' into 'master'
Set an artificial $HOME for gitaly in test See merge request gitlab-org/gitlab-ce!15614
parents
feece771
a14bd24a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
gitaly-test-spawn
scripts/gitaly-test-spawn
+2
-1
spec_helper.rb
spec/spec_helper.rb
+3
-0
No files found.
scripts/gitaly-test-spawn
View file @
4be8b9d1
#!/usr/bin/env ruby
gitaly_dir
=
'tmp/tests/gitaly'
env
=
{
'HOME'
=>
File
.
expand_path
(
'tmp/tests'
)
}
args
=
%W[
#{
gitaly_dir
}
/gitaly
#{
gitaly_dir
}
/config.toml]
# Print the PID of the spawned process
puts
spawn
(
*
args
,
[
:out
,
:err
]
=>
'log/gitaly-test.log'
)
puts
spawn
(
env
,
*
args
,
[
:out
,
:err
]
=>
'log/gitaly-test.log'
)
spec/spec_helper.rb
View file @
4be8b9d1
...
...
@@ -207,3 +207,6 @@ Shoulda::Matchers.configure do |config|
with
.
library
:rails
end
end
# Prevent Rugged from picking up local developer gitconfig.
Rugged
::
Settings
[
'search_path_global'
]
=
Rails
.
root
.
join
(
'tmp/tests'
).
to_s
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