From f01820125228c763776a73790c43e3de76146b5d Mon Sep 17 00:00:00 2001 From: Nuno Das Neves Date: Wed, 15 May 2024 16:33:21 +0000 Subject: [PATCH] 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 --- microsoft/testsuites/rust_vmm_mshv/rust_vmm_mshv_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/microsoft/testsuites/rust_vmm_mshv/rust_vmm_mshv_test.py b/microsoft/testsuites/rust_vmm_mshv/rust_vmm_mshv_test.py index f72f5afad..1033dc54f 100644 --- a/microsoft/testsuites/rust_vmm_mshv/rust_vmm_mshv_test.py +++ b/microsoft/testsuites/rust_vmm_mshv/rust_vmm_mshv_test.py @@ -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"