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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a14bd24a
Commit
a14bd24a
authored
Nov 30, 2017
by
Jacob Vosmaer (GitLab)
Committed by
Rémy Coutable
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set an artificial $HOME for gitaly in test
parent
feece771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
scripts/gitaly-test-spawn
scripts/gitaly-test-spawn
+2
-1
spec/spec_helper.rb
spec/spec_helper.rb
+3
-0
No files found.
scripts/gitaly-test-spawn
View file @
a14bd24a
#!/usr/bin/env ruby
#!/usr/bin/env ruby
gitaly_dir
=
'tmp/tests/gitaly'
gitaly_dir
=
'tmp/tests/gitaly'
env
=
{
'HOME'
=>
File
.
expand_path
(
'tmp/tests'
)
}
args
=
%W[
#{
gitaly_dir
}
/gitaly
#{
gitaly_dir
}
/config.toml]
args
=
%W[
#{
gitaly_dir
}
/gitaly
#{
gitaly_dir
}
/config.toml]
# Print the PID of the spawned process
# 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 @
a14bd24a
...
@@ -207,3 +207,6 @@ Shoulda::Matchers.configure do |config|
...
@@ -207,3 +207,6 @@ Shoulda::Matchers.configure do |config|
with
.
library
:rails
with
.
library
:rails
end
end
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