0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

chore: Fix broken test on Windows (#10900)

This commit is contained in:
David Sherret 2021-06-10 12:35:38 -04:00 committed by GitHub
parent 26a97a1f3b
commit 9d706d71b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -7,7 +7,7 @@ try {
}
const proc = Deno.run({
cmd: ["cat", "089_run_allow_list.ts"],
cmd: ["curl", "--help"],
stdout: "null",
});
console.log((await proc.status()).success);

View file

@ -3115,7 +3115,7 @@ console.log("finish");
});
itest!(_089_run_allow_list {
args: "run --allow-run=cat 089_run_allow_list.ts",
args: "run --allow-run=curl 089_run_allow_list.ts",
output: "089_run_allow_list.ts.out",
});

View file

@ -76,7 +76,10 @@ lazy_static! {
}
pub fn root_path() -> PathBuf {
PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR"), "/.."))
PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR")))
.parent()
.unwrap()
.to_path_buf()
}
pub fn prebuilt_path() -> PathBuf {