Fix the OSDK CI failure

This commit is contained in:
Jianfeng Jiang
2024-06-21 05:51:13 +00:00
committed by Tate, Hongliang Tian
parent fe7251c413
commit 3de8a9330a
40 changed files with 260 additions and 189 deletions

View File

@ -2,7 +2,7 @@
use std::{fs, path::PathBuf};
use crate::util::cargo_osdk;
use crate::util::{cargo_osdk, depends_on_local_ostd};
#[test]
fn create_a_kernel_project() {
@ -23,6 +23,8 @@ fn create_a_kernel_project() {
assert!(kernel_path.join("Cargo.toml").is_file());
assert!(kernel_path.join("rust-toolchain.toml").is_file());
depends_on_local_ostd(kernel_path.join("Cargo.toml"));
fs::remove_dir_all(&kernel_path).unwrap();
}