Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
steam-runtime-tools
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
steamrt
steam-runtime-tools
Commits
ca50f4ed
Commit
ca50f4ed
authored
3 years ago
by
Simon McVittie
Browse files
Options
Downloads
Patches
Plain Diff
tests: Time how long is taken for various aspects of containers test
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
03dba23f
No related branches found
No related tags found
No related merge requests found
Pipeline
#14255
failed
3 years ago
Stage: build
Stage: relocatable-install
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/gitlab-ci.yml
+1
-0
1 addition, 0 deletions
debian/gitlab-ci.yml
tests/pressure-vessel/containers.py
+9
-0
9 additions, 0 deletions
tests/pressure-vessel/containers.py
tests/pressure-vessel/prepare-test-depots.sh
+1
-1
1 addition, 1 deletion
tests/pressure-vessel/prepare-test-depots.sh
with
11 additions
and
1 deletion
debian/gitlab-ci.yml
+
1
−
0
View file @
ca50f4ed
...
...
@@ -28,6 +28,7 @@ variables:
pandoc
python3
python3.5
time
zlib1g
IMAGES_DOWNLOAD_URL
:
'
'
...
...
This diff is collapsed.
Click to expand it.
tests/pressure-vessel/containers.py
+
9
−
0
View file @
ca50f4ed
...
...
@@ -93,6 +93,7 @@ import shutil
import
struct
import
sys
import
tempfile
import
time
import
unittest
try
:
...
...
@@ -524,6 +525,9 @@ class TestContainers(BaseTest):
if
not
os
.
path
.
isdir
(
runtime
):
self
.
skipTest
(
'
{} not found
'
.
format
(
runtime
))
start_time
=
time
.
time
()
logger
.
info
(
'
Testing: %s
'
,
test_name
)
artifacts
=
os
.
path
.
join
(
self
.
artifacts
,
test_name
,
...
...
@@ -829,6 +833,11 @@ class TestContainers(BaseTest):
require_flag_file
=
require_flag_file
,
)
logger
.
info
(
'
Time elapsed in %s: %.1f
'
,
test_name
,
time
.
time
()
-
start_time
,
)
def
_assert_mutable_sysroot
(
self
,
tree
:
str
,
...
...
This diff is collapsed.
Click to expand it.
tests/pressure-vessel/prepare-test-depots.sh
+
1
−
1
View file @
ca50f4ed
...
...
@@ -25,7 +25,7 @@ else
fi
for
suite
in
$suites
;
do
python3 ./pressure-vessel/populate-depot.py
\
time
python3 ./pressure-vessel/populate-depot.py
\
--depot
=
"
$builddir
/depots/
$suite
"
\
--pressure-vessel
"
${
PRESSURE_VESSEL
}
"
\
--source-dir
=
"
$builddir
/depot-template"
\
...
...
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