Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
2902ad03
Commit
2902ad03
authored
Oct 22, 2018
by
Samuel GAIST
Browse files
[test][docker_execution] Sync test prefix with newly built algorithms
parent
b0a70a6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/test_docker_execution.py
View file @
2902ad03
...
...
@@ -29,6 +29,7 @@
# Tests for experiment execution within Docker containers
import
os
import
subprocess
from
..dock
import
Host
from
..execution
import
DockerExecutor
...
...
@@ -40,6 +41,7 @@ from .utils import skipif
from
.test_execution
import
BaseExecutionMixIn
from
.
import
network_name
from
.
import
prefix_folder
from
.
import
DOCKER_NETWORK_TEST_ENABLED
BUILDER_IMAGE
=
"docker.idiap.ch/beat/beat.env.client:2.0.0r0"
...
...
@@ -90,6 +92,14 @@ class TestDockerExecution(BaseExecutionMixIn):
self
.
host
.
rm
(
builder_container
)
assert
status
==
0
# Update the tmp prefix with the latest content
subprocess
.
check_call
([
'rsync'
,
'-arz'
,
'--exclude="*"'
,
'--include="*.so"'
,
os
.
path
.
join
(
test_folder
,
'prefix'
),
prefix_folder
])
@
slow
@
skipif
(
not
DOCKER_NETWORK_TEST_ENABLED
,
"Network test disabled"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment