-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit moves dependency serialization to Dependency class from safeloader to runnable. This will enable the use of dependencies in recipe files. Reference: #5918 Signed-off-by: Jan Richter <[email protected]>
- Loading branch information
Showing
7 changed files
with
75 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,6 @@ | |
# Copyright: Red Hat Inc. 2024 | ||
# Authors: Jan Richter <[email protected]> | ||
|
||
from avocado.core.nrunner.runnable import Runnable | ||
|
||
|
||
class Dependency: | ||
""" | ||
|
@@ -57,9 +55,6 @@ def __eq__(self, other): | |
return hash(self) == hash(other) | ||
return False | ||
|
||
def to_runnable(self, config): | ||
return Runnable(self.kind, self.uri, *self.args, config=config, **self.kwargs) | ||
|
||
@classmethod | ||
def from_dictionary(cls, dictionary): | ||
return cls( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters