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
7c5d96cf
Commit
7c5d96cf
authored
May 27, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve-gitlab-test' into 'master'
Improve rake test Check for `system` call return value instead of `$?.exitstatus`
parents
aef2122f
1e7fa8d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
test.rake
lib/tasks/gitlab/test.rake
+3
-4
spec.rake
lib/tasks/spec.rake
+1
-2
spinach.rake
lib/tasks/spinach.rake
+1
-2
No files found.
lib/tasks/gitlab/test.rake
View file @
7c5d96cf
...
...
@@ -8,9 +8,7 @@ namespace :gitlab do
]
cmds
.
each
do
|
cmd
|
result
=
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
raise
"
#{
cmd
}
failed!"
unless
result
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
or
raise
(
"
#{
cmd
}
failed!"
)
end
end
end
end
\ No newline at end of file
lib/tasks/spec.rake
View file @
7c5d96cf
...
...
@@ -40,7 +40,6 @@ end
def
run_commands
(
cmds
)
cmds
.
each
do
|
cmd
|
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
.
zero?
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
or
raise
(
"
#{
cmd
}
failed!"
)
end
end
lib/tasks/spinach.rake
View file @
7c5d96cf
...
...
@@ -8,7 +8,6 @@ task :spinach do
]
cmds
.
each
do
|
cmd
|
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
.
zero?
system
({
'RAILS_ENV'
=>
'test'
,
'force'
=>
'yes'
},
*
cmd
)
or
raise
(
"
#{
cmd
}
failed!"
)
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