diff options
author | Valery Sizov <valery@gitlab.com> | 2016-10-17 14:10:04 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-10-17 14:41:29 +0300 |
commit | 7762d8f5a350c92295fc11cdffa703b3cb498974 (patch) | |
tree | f30de6df34783e384f5065ac3e02af918f3cc347 /spec/support/test_env.rb | |
parent | 5c9a54d65f87ab1f20b2e8836b33ccd25df85d1a (diff) | |
download | gitlab-ce-7762d8f5a350c92295fc11cdffa703b3cb498974.tar.gz |
Fix Test Env (proper error handling when gitlab-shell is not clonned)
Diffstat (limited to 'spec/support/test_env.rb')
-rw-r--r-- | spec/support/test_env.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb index ad8ae763f6d..725299031d0 100644 --- a/spec/support/test_env.rb +++ b/spec/support/test_env.rb @@ -98,7 +98,9 @@ module TestEnv def setup_gitlab_shell unless File.directory?(Gitlab.config.gitlab_shell.path) - `rake gitlab:shell:install` + unless system('rake', 'gitlab:shell:install') + raise 'Can`t clone gitlab-shell' + end end end |