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
61318828
Commit
61318828
authored
7 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Changed worker SSH test timeout.
parent
cb6c4330
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_mediaworker.py
+1
-1
1 addition, 1 deletion
tests/test_mediaworker.py
with
1 addition
and
1 deletion
tests/test_mediaworker.py
+
1
−
1
View file @
61318828
...
@@ -37,7 +37,7 @@ def check_ssh(ip):
...
@@ -37,7 +37,7 @@ def check_ssh(ip):
cmd
=
'
ssh -o StrictHostKeyChecking=no -o PasswordAuthentication=no %s ls /tmp
'
%
ip
cmd
=
'
ssh -o StrictHostKeyChecking=no -o PasswordAuthentication=no %s ls /tmp
'
%
ip
print
(
'
Connecting to MediaWorker:
\n
%s
'
%
cmd
)
print
(
'
Connecting to MediaWorker:
\n
%s
'
%
cmd
)
try
:
try
:
subprocess
.
check_output
(
cmd
,
shell
=
True
,
timeout
=
2
)
subprocess
.
check_output
(
cmd
,
shell
=
True
,
timeout
=
5
)
print
(
'
%sLogged in successfully in
"
%s
"
.%s
'
%
(
GREEN
,
ip
,
DEF
))
print
(
'
%sLogged in successfully in
"
%s
"
.%s
'
%
(
GREEN
,
ip
,
DEF
))
except
subprocess
.
CalledProcessError
:
except
subprocess
.
CalledProcessError
:
print
(
'
%sFailed to login using SSH, run
"
ssh-copy-id %s
"
.%s
'
%
(
RED
,
ip
,
DEF
))
print
(
'
%sFailed to login using SSH, run
"
ssh-copy-id %s
"
.%s
'
%
(
RED
,
ip
,
DEF
))
...
...
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