mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 17:03:23 +00:00
Fix the OSDK CI failure
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fe7251c413
commit
3de8a9330a
@ -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();
|
||||
|
Reference in New Issue
Block a user