Improved the naming of tests which use the 'get_permutations' function. Adds the parameter values to the end of the test class.

This commit is contained in:
Benjamin Davis
2025-11-15 18:49:28 -07:00
committed by Alex Mykyta
parent 75a2163f6d
commit 6597f889fa
7 changed files with 37 additions and 24 deletions

View File

@@ -1,8 +1,9 @@
from parameterized import parameterized_class
from ..lib.sim_testcase import SimTestCase
from ..lib.test_params import get_permutations
from ..lib.cpuifs import ALL_CPUIF
from ..lib.sim_testcase import SimTestCase
from ..lib.test_params import get_permutation_class_name, get_permutations
@parameterized_class(
# To reduce the number of tests, cover all CPUIFs with both error injections enabled, and all
@@ -15,7 +16,8 @@ from ..lib.cpuifs import ALL_CPUIF
get_permutations({
"err_if_bad_addr": [True, False],
"err_if_bad_rw": [True, False],
})
}),
class_name_func=get_permutation_class_name
)
class Test(SimTestCase):
extra_tb_files = [