File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,21 @@ def pytest_configure(config):
44
44
if getattr (config .option , "fast_fvp" , False ):
45
45
pytest ._test_options ["fast_fvp" ] = config .option .fast_fvp # type: ignore[attr-defined]
46
46
47
+ pytest ._test_options ["tosa_version" ] = "0.80" # type: ignore[attr-defined]
47
48
if config .option .arm_run_tosa_version :
48
49
pytest ._test_options ["tosa_version" ] = config .option .arm_run_tosa_version
49
50
50
- pytest ._test_options ["tosa_ref_model" ] = True # type: ignore[attr-defined]
51
+ # Not all deployments of ET have the TOSA reference model available.
52
+ # Make sure we don't try to use it if it's not available.
53
+ try :
54
+ if pytest ._test_options ["tosa_version" ] == "0.80" :
55
+ import tosa_tools .v0_80 .tosa_reference_model as tosa_reference_model
56
+ else :
57
+ import tosa_tools .tosa_ref_model as tosa_reference_model
58
+ except ImportError :
59
+ pytest ._test_options ["tosa_ref_model" ] = False # type: ignore[attr-defined]
60
+ tosa_reference_model = None # noqa
61
+
51
62
52
63
logging .basicConfig (level = logging .INFO , stream = sys .stdout )
53
64
You can’t perform that action at this time.
0 commit comments