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:
parent
26a97a1f3b
commit
9d706d71b5
3 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
});
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue