Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/containers/workbenches/jupyterlab/jupyterlab_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ def test_spinner_html_loaded(self, jupyterlab_image: conftest.Image) -> None:
@allure.description("Check that PDF export is working correctly")
def test_pdf_export(self, jupyterlab_image: conftest.Image) -> None:
container = WorkbenchContainer(image=jupyterlab_image.name, user=4321, group_add=[0])
# Skip if we're running on s390x architecture
# Skip if we're running architectures where PDF export is not supported
container.start(wait_for_readiness=False)
try:
exit_code, arch_output = container.exec(["uname", "-m"])
if exit_code == 0 and arch_output.decode().strip() == "s390x":
pytest.skip("PDF export functionality is not supported on s390x architecture")
arch = arch_output.decode().strip()
if exit_code == 0 and arch in ("s390x", "ppc64le"):
pytest.skip("PDF export functionality is not supported on s390x/ppc64le architecture")
finally:
docker_utils.NotebookContainer(container).stop(timeout=0)
test_file_name = "test.ipybn"
Expand Down
Loading