Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3c67718b
Commit
3c67718b
authored
Feb 22, 2020
by
Henrik Christian Grove
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple spec fixes
parent
4772689d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
lib/backup/manager.rb
lib/backup/manager.rb
+0
-2
spec/tasks/gitlab/backup_rake_spec.rb
spec/tasks/gitlab/backup_rake_spec.rb
+1
-1
No files found.
lib/backup/manager.rb
View file @
3c67718b
...
...
@@ -125,7 +125,6 @@ module Backup
end
end
# rubocop: disable Cop/AvoidReturnFromBlocks
def
unpack
Dir
.
chdir
(
backup_path
)
do
if
ENV
[
'BACKUP'
].
present?
...
...
@@ -169,7 +168,6 @@ module Backup
end
true
end
# rubocop: enable Cop/AvoidReturnFromBlocks
def
tar_version
tar_version
,
_
=
Gitlab
::
Popen
.
popen
(
%w(tar --version)
)
...
...
spec/tasks/gitlab/backup_rake_spec.rb
View file @
3c67718b
...
...
@@ -241,7 +241,7 @@ describe 'gitlab:app namespace rake task' do
)
expect
(
exit_status
).
to
eq
(
0
)
expect
(
tar_contents
).
to
match
(
'db
/
'
)
expect
(
tar_contents
).
to
match
(
'db'
)
expect
(
tar_contents
).
to
match
(
'uploads.tar.gz'
)
expect
(
tar_contents
).
to
match
(
'repositories/'
)
expect
(
tar_contents
).
to
match
(
'builds.tar.gz'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment