Fix wiggle's tests
This commit is contained in:
1
crates/wiggle/crates/generate/.gitignore
vendored
1
crates/wiggle/crates/generate/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
target
|
||||
@@ -85,7 +85,17 @@ impl Parse for WitxConf {
|
||||
let path_lits: Punctuated<LitStr, Token![,]> = content.parse_terminated(Parse::parse)?;
|
||||
let paths: Vec<PathBuf> = path_lits
|
||||
.iter()
|
||||
.map(|lit| PathBuf::from(lit.value()))
|
||||
.map(|lit| {
|
||||
let p = PathBuf::from(lit.value());
|
||||
if p.is_absolute() {
|
||||
p
|
||||
} else {
|
||||
let mut root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
root.pop();
|
||||
root.pop();
|
||||
root.join(p)
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
Ok(WitxConf { paths })
|
||||
}
|
||||
|
||||
2
crates/wiggle/crates/runtime/.gitignore
vendored
2
crates/wiggle/crates/runtime/.gitignore
vendored
@@ -1,2 +0,0 @@
|
||||
target
|
||||
Cargo.lock
|
||||
2
crates/wiggle/crates/test/.gitignore
vendored
2
crates/wiggle/crates/test/.gitignore
vendored
@@ -1,2 +0,0 @@
|
||||
target
|
||||
Cargo.lock
|
||||
Reference in New Issue
Block a user