Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
be51ab7b
Commit
be51ab7b
authored
8 years ago
by
Florent Thiery
Browse files
Options
Downloads
Patches
Plain Diff
fix return codes, refs
#20687
parent
e372f5da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_backup.py
+5
-2
5 additions, 2 deletions
tests/test_backup.py
with
5 additions
and
2 deletions
tests/test_backup.py
+
5
−
2
View file @
be51ab7b
...
...
@@ -28,6 +28,7 @@ def test_last_backup_is_recent(server, client):
print
(
'
Backup is older than 2 days
'
)
return
False
else
:
print
(
'
There is a backup that is less than 2 days old, this is fine
'
)
return
True
else
:
return
False
...
...
@@ -42,8 +43,10 @@ if os.path.isfile('../utils.py'):
print
(
'
Failed to ssh into backup server
'
)
sys
.
exit
(
1
)
else
:
test_last_backup_is_recent
(
BURP_SERVER
,
BURP_CLIENT_NAME
)
if
not
test_last_backup_is_recent
(
BURP_SERVER
,
BURP_CLIENT_NAME
):
sys
.
exit
(
1
)
else
:
sys
.
exit
(
0
)
else
:
sys
.
exit
(
2
)
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment