Stack Trace
self = <test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7f1a82ee62d0>
tmpdir = local('/tmp/pytest-of-omero/pytest-5/test_remove_pyramids_big_endia0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f1a462375d0>
def test_remove_pyramids_big_endian(self, tmpdir, capsys):
"""Test removepyramids with big endian true"""
name = "big&sizeX=3500&sizeY=3500&little=false.fake"
img_id = self.import_pyramid(tmpdir, name=name, skip=None)
query_service = self.client.sf.getQueryService()
image = query_service.findByQuery(
"select i from Image i join fetch i.pixels p where i.id = :id",
ParametersI().addId(img_id)
)
pixels_id = next(iter(image.copyPixels())).id.val
# Wait for pyramid to actually be on disk
> self.wait_for_pyramid_file(pixels_id)
test/integration/clitest/test_pyramids.py:254:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7f1a82ee62d0>
pixels_id = 2137, timeout = 120
def wait_for_pyramid_file(self, pixels_id, timeout=120):
pixels_dir = (
"/home/omero/workspace/"
"OMERO-test-integration/data/Pixels"
)
expected = f"{pixels_id}_pyramid"
deadline = time.time() + timeout
while time.time() < deadline:
for root, _, files in os.walk(pixels_dir):
if expected in files:
return
time.sleep(1)
> pytest.fail(
f"Timed out waiting for pyramid file {expected}"
)
E Failed: Timed out waiting for pyramid file 2137_pyramid
test/integration/clitest/test_pyramids.py:156: Failed