Skip to content

Commit

Permalink
fix: windows CI and rust version to 1.80 (#1652)
Browse files Browse the repository at this point in the history
fix: override file windows test CI

Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Sep 14, 2024
1 parent 59883ae commit b3862c1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kclvm/query/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ const CARGO_FILE_PATH: &str = env!("CARGO_MANIFEST_DIR");

fn get_test_dir(sub: String) -> PathBuf {
let mut cargo_file_path = PathBuf::from(CARGO_FILE_PATH);
cargo_file_path.push("src/test_data");
cargo_file_path.push(sub);
cargo_file_path.push("src");
cargo_file_path.push("test_data");
// Split unix and windows path
for part in sub.split("/") {
for p in part.split("\\") {
cargo_file_path.push(p);
}
}
cargo_file_path
}

Expand Down

0 comments on commit b3862c1

Please sign in to comment.