Skip to content

Commit f9aa5a4

Browse files
authored
fix/skip another test pdf on linux/arm64 (Unstructured-IO#414)
Follow up from Unstructured-IO#413. These tests hang in CI and are blocking the image build.
1 parent c504295 commit f9aa5a4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/smoketest.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,21 @@ def test_happy_path(example_filename: str, content_type: str):
130130
(["stanley-cups.csv"], [], "application/csv"),
131131
(["fake.doc"], [], "application/msword"),
132132
# compressed and uncompressed
133-
(["layout-parser-paper-fast.pdf"], ["list-item-example.pdf"], "application/pdf"),
133+
pytest.param(
134+
["layout-parser-paper-fast.pdf"],
135+
["list-item-example.pdf"],
136+
"application/pdf",
137+
marks=pytest.mark.skipif(skip_inference_tests, reason="emulated architecture"),
138+
),
134139
(["fake-email.eml"], ["fake-email-image-embedded.eml"], "message/rfc822"),
135140
# compressed and uncompressed
136141
# empty content-type means that API should detect filetype after decompressing.
137-
(["layout-parser-paper-fast.pdf"], ["list-item-example.pdf"], ""),
142+
pytest.param(
143+
["layout-parser-paper-fast.pdf"],
144+
["list-item-example.pdf"],
145+
"",
146+
marks=pytest.mark.skipif(skip_inference_tests, reason="emulated architecture"),
147+
),
138148
(["fake-email.eml"], ["fake-email-image-embedded.eml"], ""),
139149
],
140150
)

0 commit comments

Comments
 (0)