From a1782306dbd1da0b0c822b99307030e3ebd13cbe Mon Sep 17 00:00:00 2001 From: wangpeng Date: Thu, 19 Dec 2024 10:46:58 +0800 Subject: [PATCH] fix 6068:Make the test class dependencies fulfill all the tests. Signed-off-by: wangpeng --- avocado/core/dependencies/dependency.py | 2 +- selftests/functional/serial/requirements.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avocado/core/dependencies/dependency.py b/avocado/core/dependencies/dependency.py index 2f77c5763c..46473d6e35 100644 --- a/avocado/core/dependencies/dependency.py +++ b/avocado/core/dependencies/dependency.py @@ -58,7 +58,7 @@ def __eq__(self, other): @classmethod def from_dictionary(cls, dictionary): return cls( - dictionary.pop("type", None), + dictionary.get("type", None), dictionary.pop("uri", None), dictionary.pop("args", ()), dictionary, diff --git a/selftests/functional/serial/requirements.py b/selftests/functional/serial/requirements.py index 6f6dbfb4ea..06ab5cf78c 100644 --- a/selftests/functional/serial/requirements.py +++ b/selftests/functional/serial/requirements.py @@ -134,8 +134,8 @@ def test_c(self): { "kind": "avocado-instrumented", "uri": "{path}", - "kwargs": {"dependencies": [{"type": "package", "name": "hello"}]} -} + "kwargs": {{"dependencies": [{{"type": "package", "name": "hello"}}]}} +}} """