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_and_run_kernel() {
@ -19,6 +19,10 @@ fn create_and_run_kernel() {
command.current_dir(work_dir);
command.ok().unwrap();
// Makes the kernel depend on local OSTD
let manifest_path = os_dir.join("Cargo.toml");
depends_on_local_ostd(&manifest_path);
let mut command = cargo_osdk(&["build"]);
command.current_dir(&os_dir);
command.ok().unwrap();
@ -48,6 +52,9 @@ fn create_and_test_library() {
command.current_dir(work_dir);
command.ok().unwrap();
let manifest_path = module_dir.join("Cargo.toml");
depends_on_local_ostd(manifest_path);
let mut command = cargo_osdk(&["test"]);
command.current_dir(&module_dir);
command.ok().unwrap();