Skip to content

Commit d99f8dc

Browse files
committed
answerfile: allow use of a callable to depend on "firmware"
1 parent 10f71de commit d99f8dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/install/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def answerfile(request):
5555
return
5656

5757
# construct answerfile definition from option "base", and explicit bits
58-
marker_def = deepcopy(marker.args[0])
58+
param_mapping = marker.kwargs.get("param_mapping", {})
59+
marker_def = deepcopy(callable_marker(marker.args[0], request, param_mapping=param_mapping))
5960
if "base" in marker_def:
6061
from data import BASE_ANSWERFILES
6162
answerfile_def = deepcopy(BASE_ANSWERFILES[marker_def["base"]])

0 commit comments

Comments
 (0)