Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-26 22:54:57 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-26 22:54:57 +0400
commite426d43924be265d4834f47fd765895dde6017fb (patch)
tree99c482cd71e822fc9e4d83fe2a5ab4efed6e4023 /lib/tasks/spec.rake
parent7ad5fb53ac4e14b22684a0d4904ccf724fd4e082 (diff)
Check return system value for gitlab test rake tasks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/tasks/spec.rake')
-rw-r--r--lib/tasks/spec.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/spec.rake b/lib/tasks/spec.rake
index 49fbe1bd47a..a7cd7483bed 100644
--- a/lib/tasks/spec.rake
+++ b/lib/tasks/spec.rake
@@ -40,7 +40,7 @@ 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) ||
+ raise "#{cmd} failed!"
end
end