Skip to content

Commit

Permalink
fix 6068:Make the test class dependencies fulfill all the tests.
Browse files Browse the repository at this point in the history
Signed-off-by: wangpeng <[email protected]>
  • Loading branch information
wangpeng committed Dec 5, 2024
1 parent 9bc4760 commit fd83b15
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions avocado/core/nrunner/runnable.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

import pkg_resources

from copy import deepcopy

try:
import jsonschema

Expand Down Expand Up @@ -402,13 +404,14 @@ def read_dependencies(self, dependencies_dict):
:returns: Runnable dependencies in avocado.core.dependencies.dependency.Dependency format.
:rtype: list of Dependency
"""
if isinstance(dependencies_dict, list):
new_dependencies_dict = deepcopy(dependencies_dict)
if isinstance(new_dependencies_dict, list):
return list(
map(
lambda d: (
Dependency.from_dictionary(d) if isinstance(d, dict) else d
),
dependencies_dict,
new_dependencies_dict,
)
)

Expand Down

0 comments on commit fd83b15

Please sign in to comment.