summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-06 09:07:15 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-06 09:07:15 +0300
commitfd7a221cca9d5ac5338b265fb66b280e205b6330 (patch)
treefdd5457311b43c2519626340c3ef79732fcebe36 /lib/tasks
parentaeb5a01ed15929b116d1750b7da2433498c305e0 (diff)
downloadgitlab-ce-fd7a221cca9d5ac5338b265fb66b280e205b6330.tar.gz
Change gitlab:test task
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/test.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/test.rake b/lib/tasks/gitlab/test.rake
index 2c9b9978933..9516210e205 100644
--- a/lib/tasks/gitlab/test.rake
+++ b/lib/tasks/gitlab/test.rake
@@ -8,9 +8,9 @@ namespace :gitlab do
]
cmds.each do |cmd|
- system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd)
+ result = system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd)
- raise "#{cmd} failed!" unless $?.exitstatus.zero?
+ raise "#{cmd} failed!" unless result
end
end
end