diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-26 21:54:57 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-26 21:54:57 +0300 |
commit | e426d43924be265d4834f47fd765895dde6017fb (patch) | |
tree | 99c482cd71e822fc9e4d83fe2a5ab4efed6e4023 /lib/tasks/spinach.rake | |
parent | 7ad5fb53ac4e14b22684a0d4904ccf724fd4e082 (diff) | |
download | gitlab-ce-e426d43924be265d4834f47fd765895dde6017fb.tar.gz |
Check return system value for gitlab test rake tasks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/tasks/spinach.rake')
-rw-r--r-- | lib/tasks/spinach.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/spinach.rake b/lib/tasks/spinach.rake index c23d0e0e188..ebcce1e650c 100644 --- a/lib/tasks/spinach.rake +++ b/lib/tasks/spinach.rake @@ -8,7 +8,7 @@ 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) || + raise "#{cmd} failed!" end end |