зеркало из https://github.com/microsoft/lisa.git
rust_vmm_mshv: git clone mshv crate with a ref from a variable
Get variable "mshv_crate_ref". Default to "main" if not found in the variables Dict. Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com>
This commit is contained in:
Родитель
934cf16993
Коммит
f018201252
|
@ -49,8 +49,9 @@ class RustVmmTestSuite(TestSuite):
|
|||
variables: Dict[str, Any],
|
||||
) -> None:
|
||||
repo = "https://github.com/rust-vmm/mshv.git"
|
||||
ref = variables.get("mshv_crate_ref", "main")
|
||||
git = node.tools[Git]
|
||||
repo_root = git.clone(repo, node.get_working_path())
|
||||
repo_root = git.clone(repo, node.get_working_path(), ref=ref)
|
||||
mshv_bindings_path = variables.get("mshv_bindings_path", "")
|
||||
if mshv_bindings_path:
|
||||
git_bindings_path = repo_root / "mshv-bindings" / "src"
|
||||
|
|
Загрузка…
Ссылка в новой задаче