Skip to content

Commit 2fa9f4c

Browse files
committed
fix if no transformer used
1 parent 9d80923 commit 2fa9f4c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_toolchains.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ def load_and_read(tester, benchmark):
6161
if results["loader"].not_supported:
6262
pytest.skip("Checker does not support these files.")
6363
assert results["loader"].exit_code == 0, "Loader should not crash."
64-
if results["transformer"].anticipated_error:
65-
pytest.xfail("Transformer failed with an anticipated error")
66-
if results["transformer"].not_supported:
67-
pytest.skip("Transformer does not support these files.")
6864
if results["transformer"] is not None:
65+
if results["transformer"].anticipated_error:
66+
pytest.xfail("Transformer failed with an anticipated error")
67+
if results["transformer"].not_supported:
68+
pytest.skip("Transformer does not support these files.")
6969
assert results["transformer"].exit_code == 0, "Transformer should not crash"
7070
if results["checker"].anticipated_error:
7171
pytest.xfail("Checker failed with an anticipated error.")

0 commit comments

Comments
 (0)