mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00
Enforce env permission on homeDir() and execPath (#2714)
This commit is contained in:
parent
c6861b537e
commit
52c13fb3ed
4 changed files with 40 additions and 10 deletions
|
@ -55,7 +55,10 @@ class TestTarget(DenoTestCase):
|
|||
assert result.out.strip() == "noColor false"
|
||||
|
||||
def test_exec_path(self):
|
||||
cmd = [self.deno_exe, "run", "--allow-run", "tests/exec_path.ts"]
|
||||
cmd = [
|
||||
self.deno_exe, "run", "--allow-run", "--allow-env",
|
||||
"tests/exec_path.ts"
|
||||
]
|
||||
result = run_output(cmd, quiet=True)
|
||||
print "exec_path", result.code
|
||||
print result.out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue