Skip to content
Snippets Groups Projects
Commit ca50f4ed authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Time how long is taken for various aspects of containers test

parent 03dba23f
No related branches found
No related tags found
No related merge requests found
Pipeline #14255 failed
...@@ -28,6 +28,7 @@ variables: ...@@ -28,6 +28,7 @@ variables:
pandoc pandoc
python3 python3
python3.5 python3.5
time
zlib1g zlib1g
IMAGES_DOWNLOAD_URL: '' IMAGES_DOWNLOAD_URL: ''
......
...@@ -93,6 +93,7 @@ import shutil ...@@ -93,6 +93,7 @@ import shutil
import struct import struct
import sys import sys
import tempfile import tempfile
import time
import unittest import unittest
try: try:
...@@ -524,6 +525,9 @@ class TestContainers(BaseTest): ...@@ -524,6 +525,9 @@ class TestContainers(BaseTest):
if not os.path.isdir(runtime): if not os.path.isdir(runtime):
self.skipTest('{} not found'.format(runtime)) self.skipTest('{} not found'.format(runtime))
start_time = time.time()
logger.info('Testing: %s', test_name)
artifacts = os.path.join( artifacts = os.path.join(
self.artifacts, self.artifacts,
test_name, test_name,
...@@ -829,6 +833,11 @@ class TestContainers(BaseTest): ...@@ -829,6 +833,11 @@ class TestContainers(BaseTest):
require_flag_file=require_flag_file, require_flag_file=require_flag_file,
) )
logger.info(
'Time elapsed in %s: %.1f',
test_name, time.time() - start_time,
)
def _assert_mutable_sysroot( def _assert_mutable_sysroot(
self, self,
tree: str, tree: str,
......
...@@ -25,7 +25,7 @@ else ...@@ -25,7 +25,7 @@ else
fi fi
for suite in $suites; do for suite in $suites; do
python3 ./pressure-vessel/populate-depot.py \ time python3 ./pressure-vessel/populate-depot.py \
--depot="$builddir/depots/$suite" \ --depot="$builddir/depots/$suite" \
--pressure-vessel "${PRESSURE_VESSEL}" \ --pressure-vessel "${PRESSURE_VESSEL}" \
--source-dir="$builddir/depot-template" \ --source-dir="$builddir/depot-template" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment