summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-10-01 22:52:36 -0700
committerStan Hu <stanhu@gmail.com>2017-10-01 22:52:44 -0700
commit3fa007dce4d92e38bcab116282e23d49a4b7c5a8 (patch)
tree3cbe4bd56c6ca7c17c8effd8fb3db009b06e2194
parente1cc9d164008750c0c2ab04c501a1138bce19077 (diff)
downloadgitlab-ce-sh-add-backup-gitlab-qa.tar.gz
Add return code check for backup Rake testsh-add-backup-gitlab-qa
-rw-r--r--qa/qa/specs/tasks/backup_restore_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/qa/specs/tasks/backup_restore_spec.rb b/qa/qa/specs/tasks/backup_restore_spec.rb
index 3daf7d2e151..4fd9fa6c0eb 100644
--- a/qa/qa/specs/tasks/backup_restore_spec.rb
+++ b/qa/qa/specs/tasks/backup_restore_spec.rb
@@ -7,8 +7,9 @@ module QA
backup = Tasks::Backup.new(config.backup_path)
before_count = backup.list_backups.count
- backup.create_backup
+ _, status = backup.create_backup
+ expect(status).to eq(0)
expect(backup.list_backups.count).to eq(before_count + 1)
end
end