Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
beat
beat.core
Commits
69bb80cc
Commit
69bb80cc
authored
7 years ago
by
Philip ABBET
Browse files
Options
Downloads
Patches
Plain Diff
Add missing changes from previous commit
parent
dba1eb10
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
beat/core/test/test_docker.py
+6
-6
6 additions, 6 deletions
beat/core/test/test_docker.py
buildout_pull_images.sh
+1
-1
1 addition, 1 deletion
buildout_pull_images.sh
with
7 additions
and
7 deletions
beat/core/test/test_docker.py
+
6
−
6
View file @
69bb80cc
...
...
@@ -124,7 +124,7 @@ class AsyncTest(unittest.TestCase):
def
test_memory_limit
(
self
):
with
Popen
(
self
.
host
,
'
environment (1
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
with
Popen
(
self
.
host
,
'
Python 2.7 (1.1.0
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
"
print(
'
Before
'
)
"
,
"
import sys; sys.stdout.flush()
"
,
"
d =
'
0
'
* (10 * 1024 * 1024)
"
,
...
...
@@ -146,7 +146,7 @@ class AsyncTest(unittest.TestCase):
def
test_memory_limit2
(
self
):
with
Popen
(
self
.
host
,
'
environment (1
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
with
Popen
(
self
.
host
,
'
Python 2.7 (1.1.0
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
"
print(
'
Before
'
)
"
,
"
import sys; sys.stdout.flush()
"
,
"
d =
'
0
'
* (10 * 1024 * 1024)
"
,
...
...
@@ -175,7 +175,7 @@ class AsyncTest(unittest.TestCase):
# disabled: we limit the maximum output to 1M internally
size
=
2
**
16
#bytes
with
Popen
(
self
.
host
,
'
environment (1
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
with
Popen
(
self
.
host
,
'
Python 2.7 (1.1.0
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
"
import sys
"
,
"
for i in range(%d): sys.stdout.write(
'
%%d
\n
'
%% i)
"
%
size
,
"
sys.stdout.flush()
"
,
...
...
@@ -198,7 +198,7 @@ class AsyncTest(unittest.TestCase):
# disabled: we limit the maximum output to 1M internally
size
=
2
**
16
#bytes
with
Popen
(
self
.
host
,
'
environment (1
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
with
Popen
(
self
.
host
,
'
Python 2.7 (1.1.0
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
"
import sys
"
,
"
for i in range(%d): sys.stderr.write(
'
%%d
\n
'
%% i)
"
%
size
,
"
sys.stderr.flush()
"
,
...
...
@@ -221,7 +221,7 @@ class AsyncTest(unittest.TestCase):
# disabled: we limit the maximum output to 1M internally
size
=
2
**
16
#bytes
with
Popen
(
self
.
host
,
'
environment (1
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
with
Popen
(
self
.
host
,
'
Python 2.7 (1.1.0
)
'
,
[
'
python
'
,
'
-c
'
,
'
;
'
.
join
([
"
import sys
"
,
"
for i in range(%d): sys.stdout.write(
'
%%d
\n
'
%% i)
"
%
size
,
"
sys.stdout.flush()
"
,
...
...
@@ -251,7 +251,7 @@ class AsyncTest(unittest.TestCase):
program
=
pkg_resources
.
resource_filename
(
__name__
,
'
cpu_stress.py
'
)
tmp_name
=
os
.
path
.
join
(
'
/tmp
'
,
os
.
path
.
basename
(
program
))
with
Popen
(
self
.
host
,
'
environment (1
)
'
,
[
'
python
'
,
tmp_name
,
with
Popen
(
self
.
host
,
'
Python 2.7 (1.1.0
)
'
,
[
'
python
'
,
tmp_name
,
str
(
processes
)],
max_cpu_percent
=
max_cpu_percent
,
tmp_archive
=
program
)
as
p
:
...
...
This diff is collapsed.
Click to expand it.
buildout_pull_images.sh
+
1
−
1
View file @
69bb80cc
#! /bin/bash
IMAGES
=(
docker.idiap.ch/beat/beat.env.system.python:
system
docker.idiap.ch/beat/beat.env.system.python:
1.1.0
docker.idiap.ch/beat/beat.env.db.examples:1.0.1
docker.idiap.ch/beat/beat.env.cxx:1.0.1
docker.idiap.ch/beat/beat.env.client:1.0.0
...
...
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