Run OSDK tests in host environment

This commit is contained in:
Jianfeng Jiang
2024-03-12 09:28:09 +00:00
committed by Tate, Hongliang Tian
parent aaf101a53e
commit 951b2f98dd
7 changed files with 93 additions and 10 deletions

View File

@ -43,11 +43,7 @@ fn add_manifest_dependencies(cargo_metadata: &serde_json::Value, crate_name: &st
dependencies.as_table_mut().unwrap().extend(aster_frame_dep);
let ktest_dep = toml::Table::from_str(&aster_crate_dep("ktest")).unwrap();
dependencies.as_table_mut().unwrap().extend(ktest_dep);
// If we created a workspace by `osdk new`, we should exclude the `base` crate from the workspace.
// let exclude = toml::Table::from_str(r#"exclude = ["target/osdk/base"]"#).unwrap();
// manifest.insert("workspace".to_string(), toml::Value::Table(exclude));
let content = toml::to_string(&manifest).unwrap();
fs::write(mainfest_path, content).unwrap();
}